I am experimenting with dash for an optimization tool for engineers. I had some minor experience with plotly and python prior to this so I thought I would try out the framework.
The tool right now is in a user manual input mode that allows users to input all the parameters and see the output.
FYI the figure updates on the click of a button where the button then takes the state of all the inputs.
I’d like to allow users to compare their current graph to their previous attempt.
I’ve hacked together a demo making
traces a global variable which gets appended every time but this is obviously not sustainable for multiple users.
Also I’d rather not run the “heavy” or long duration calculation multiple times per graph by storing the input values as an intermediary.
When looking at this article: https://dash.plot.ly/sharing-data-between-callbacks
It seems like my best bet is using a cached variable. Could someone provide a guide for this for the traces =  variable?