# How to update python variables in a callback

**URL:** <https://community.plotly.com/t/how-to-update-python-variables-in-a-callback/76068>\
**Category:** Dash Python\
**Tags:** question\
**Created:** [June 13, 2023, 7:36pm UTC](https://community.plotly.com/t/how-to-update-python-variables-in-a-callback/76068 "2023-06-13T19:36:21Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![martin2097](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/martin2097/32/23538_2.png) [@martin2097](https://community.plotly.com/u/martin2097)\
**Post date:** [June 13, 2023, 7:48pm UTC](https://community.plotly.com/t/how-to-update-python-variables-in-a-callback/76068/2 "2023-06-13T19:48:34Z")

</div>

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](https://dash.plotly.com/sharing-data-between-callbacks)

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 🙂

---

_[View the full topic](https://community.plotly.com/t/how-to-update-python-variables-in-a-callback/76068)._
