I created a layout which contains nested accordion.
When I try to open the accordion I get: “Page unresponsive ( wait to be responsive or exit)”.
Is there a way that I can debug it? ( I removed the callbacks to see if it causes the issue but it stills give me that note)
Or a different question is why it is happing? it there a build-in timer to DASH?
This code runs in a loop and generates 1400 small tables.
When I used dbc.Table.from_dataframe instead of dash_table.DataTable, it didn’t give me the ‘un-responding’ warning.
But I need my tables to be interactive, so I do need to use dash_table
Yes, I replaced the style of the table and the accordion now opens quickly.
I don’t need to display all the tables at once, the tables are embedded in the close accordion, each table in a different accordion (it is a big nested accordion) , so when the layout is uploaded, it takes time.
But I will keep the simple table style, dash_table is indeed pretty havey.
I have different question, that I hope you could help me.
The main propose of my GUI is that the user first choose the database source and then I’m updating the layout with the desired data the user wants.
My nested accordion contains callbacks that presents tables, graphs etc. The number of items in the accordion depends in the number of datasets in the database that the user requested.
I though that I can just create new accordions, per requests , containing predefined ‘id’ for the callbacks. But the callbacks doesn’t work when I update the layout.
Am I trying something un realistic?
So, in the left, or so, you have your database options as checkboxes. When a user selects it, it builds the right side, where they can see stuff and manipulate the data. You want all these options to be displayed in a scrollable, collapsible way.
So finally I created a simple layout with pre-defined nested accordion which presents tables with callbacks (instead of embedding many tables in the closed accordion), I am using Pattern-Matching Callbacks to manage all my callbacks.
I will be happy to share my code once I’m done,