DT icon indicating copy to clipboard operation
DT copied to clipboard

Any packages similar to DT for python shiny?

Open DRosenman opened this issue 10 months ago • 3 comments
trafficstars

I love using the DT package, specifically with its filter tools, in my R shiny apps. Is there anything similar in python? If not, I'm thinking of trying to a python package similar to DT that utilizes the datatables library.

DRosenman avatar Jan 21 '25 15:01 DRosenman

datatable.net is a frontend and there was a lot of work to adapt it and create its backend (server= TRUE) in DT R package by @yihui .

When I first installed DT in early 2018, for me it was a simple adaptation of datatable.net, used many times in my R Shiny apps, but in 2022 when I implemented datatable.net with Flask Rest and VueJs 3, I rewrote a lot of things in python Flask server side (pagination, order, filter, etc ) which I thought were in datatable.net but actually written in the server side of DT R Shiny.

In 2022 a datatable server side in python didn't exist: only some of partial POCs and articles, that helped me, exist. I don't kown if datatable.net server side in python exists in the early 2025.

When you look at Python for Shiny:

  • it uses @tanstack/react-table https://github.com/posit-dev/py-shiny/blob/main/js/data-frame/index.tsx#L17
  • but there is a list of todo there https://github.com/posit-dev/py-shiny/blob/main/js/data-frame/index.tsx#L84

PS: I'm a simple user

philibe avatar Jan 22 '25 10:01 philibe

datatable.net is a frontend and there was a lot of work to adapt it and create its backend (server= TRUE) in DT R package

Yes, it was a huge amount of work. If you don't need the server-side processing, perhaps simple-datatables would be better to experiment with than DataTables: https://github.com/fiduswriter/simple-datatables/ DataTables is powerful but also extremely complicated.

yihui avatar Jan 22 '25 14:01 yihui

datatable.net is a frontend and there was a lot of work to adapt it and create its backend (server= TRUE) in DT R package

Yes, it was a huge amount of work. If you don't need the server-side processing, perhaps simple-datatables would be better to experiment with than DataTables: https://github.com/fiduswriter/simple-datatables/ DataTables is powerful but also extremely complicated.

Thanks! I don't need server-side processing so I'll give simple-datatables a shot!

DRosenman avatar Jan 22 '25 15:01 DRosenman

itables is probably closest in terms of feature set, but Shiny also ships with it's own https://shiny.posit.co/py/components/outputs/data-grid/

cpsievert avatar Jul 18 '25 18:07 cpsievert