I have built an app that uses dash datatables for exploring data. The tables have back end filtering, I have replaced the native filters with something more flexible (a filter cell can, for example, understand python code so that simple python-expressions can be applied on the column beneath it). This requires a callback function.
Here is the challenge: The user should be able to open a datafile in a new datatable. But this is not simple since the app can’t add a new callback function while it is running. How to solve this?
For now, I pre-create a stack of datatables+callbacks in the app code. When a user reads in data, the app takes a table from the stack. This solution sets a limit to the number of tables that the app can open and it makes the code complex compared to opening a datatable with native filtering which requires no callback.
Is it possible to create new back-end filtered datatables that share the same callback function?
Is there another way of solving the challenge?
On my wishlist:
- datatables with native back-end filtering
- programmable native filters