How to update python variables in a callback

Hello @harshang and welcome to the forum!

This is really frequent topic on to forum. Firstly check out this part of the official documentation: Part 4. Sharing Data Between Callbacks | Dash for Python Documentation | Plotly

It should give you some overview of this topic. Secondly you will have to to specify the use of the data. Is it small or is it large? What you will use it for? Will this data be somehow updated from some external source? etc

Then we can try to advice you the best solution for you :slight_smile:

1 Like