My goal: I want to select different modes in a dropdown menu.
Only then, based on the selection, the Dash components should be displayed.
For example, in the first mode a graph and a button, but in the second mode an input field instead.
So, what is the common way to reach something like that with Python and Plotly Dash?
I’ve read some things about Pattern-Matching Callbacks but it seems like this would be a way for dynamically created components, mine would be pre-defined modes which should be defined and added groupwise.
I tried to create an empty Container inside the main layout and add children to that container afterwards but I didnt get it work, is there a better way?
Seems like I would have some problems concerning the creation of ‘layout for selection 1’, which reads a graph from a .db file. The minimal code is running, but not the original one.
If it takes too long to create e.g. a graph for a layout in this way, could it be that i get a “server did not respond” error?