简体   繁体   English

Plotly/dash 仪表板不是实时更新 - Python

[英]Plotly/dash Dashboard is not live updating - Python

I have written a script which deploys a Dashboard using plotly-dash.我写了一个脚本,它使用 plotly-dash 部署了一个仪表板。 It has graphs, data for which is coming from the excel file located on the PC.它有图表,数据来自 PC 上的 excel 文件。 This data is stored in the excel file which will be updated on a daily basis.此数据存储在 excel 文件中,该文件将每天更新。 What can I do for the app to get updated with the new data without me redeploying it every day?我该怎么做才能让应用程序更新新数据而无需每天重新部署它? Maybe you can give some advice or ideas?也许您可以提供一些建议或想法?

PS The dashboard is currently deployed using Heroku. PS仪表盘目前使用Heroku部署。

If your app reads the file in as part of a callback based on something like the pathname ( dcc.Location ), then you could just refresh the page.如果您的应用程序基于路径名 ( dcc.Location ) 之类的内容作为回调的一部分读取文件,那么您只需刷新页面即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM