# Is there a way to reload an entire Plotly Dash py script?

**URL:** <https://community.plotly.com/t/is-there-a-way-to-reload-an-entire-plotly-dash-py-script/49214>\
**Category:** Dash Python\
**Created:** [January 21, 2021, 8:39pm UTC](https://community.plotly.com/t/is-there-a-way-to-reload-an-entire-plotly-dash-py-script/49214 "2021-01-21T20:39:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DAtsp](https://avatars.discourse-cdn.com/v4/letter/d/ba8739/32.png) [@DAtsp](https://community.plotly.com/u/DAtsp)\
**Post date:** [January 21, 2021, 8:39pm UTC](https://community.plotly.com/t/is-there-a-way-to-reload-an-entire-plotly-dash-py-script/49214/1 "2021-01-21T20:39:33Z")

</div>

I have deployed a plotly dash app to heroku which gets data from a few APIs then makes some plots

Is there a way to get the webpage to automatically refresh every ten minutes so it reloads completely with all the new data?

---

<div class="post-metadata">

**Author:** ![Eduardo](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/eduardo/32/13310_2.png) [@Eduardo](https://community.plotly.com/u/Eduardo)\
**Post date:** [January 21, 2021, 10:22pm UTC](https://community.plotly.com/t/is-there-a-way-to-reload-an-entire-plotly-dash-py-script/49214/2 "2021-01-21T22:22:28Z")

</div>

Hi @DAtsp

You can use dcc.Interval

[https://dash.plotly.com/dash-core-components/interval](https://dash.plotly.com/dash-core-components/interval)
