Sorry if this question is incoherent or easily solvable; I’m very new to Dash and Flask.
I’m currently writing an application that grabs data from objects using a python module. Using this data, it calculates an object’s path and displays multiple of these objects on a graph as points where a slider can be used to show movement over time as an animation.
The initial data retrieval is by choosing a center object and grabbing near by objects around it.
The issue I’m running into is I’d like to allow a user to be able to specify which object to center the graph on through an input. This would require another call to the module, because it is not possible (nor efficient) to store all possible data inputs in the application. My issue is then maintaining this data so that the slider can continue to be used.
I’ve considered:
- HTTP protocols (get/post): Do not seem to be supported by Dash
- Storing data in browser: Seemed nonviable because it seemed impossible to then clear a set of data when a new center was chosen
- Multiple inputs per callback (reading input to for center and input for time): Seemed problematic because re-initializing data is very expensive, and having to do this every time the slider is moved is unideal
- Modifying global variables: Should be avoided in Dash
Sorry for the vagueness of this question, but I’m a little lost at what tools I could use to solve this issue.