plotly / dash

Data Apps & Dashboards for Python. No JavaScript Required.
https://plotly.com/dash
MIT License
21.16k stars 2.04k forks source link

Live-Updates doesn't work on Raspberry Pi 3[BUG] #962

Open tpt5cu opened 4 years ago

tpt5cu commented 4 years ago

Raspbian GNU/Linux 9 using Chromium

Describe the bug

When following the Live-Updates tutorial from https://dash.plot.ly/live-updates, the graphs appear in the web browser, but the graphs are empty. Below are screen shots of what happened vs. what is expected respectively.

Screen Shot 2019-10-08 at 4 45 22 PM Screen Shot 2019-10-08 at 4 46 23 PM

SOLUTION:

The solution was to simply increase the interval to 1 * 10000 ms. Then the live-updates worked as expected. Not entirely sure why, but wanted to bring this issue up. Thanks!

alexcjohnson commented 4 years ago

most likely a duplicate of #943 - @tpt5cu can you see if this is the case by looking at the requests in the network tab to see if a new one fires before the previous responds?

tpt5cu commented 4 years ago

@alexcjohnson after taking a look at the network tab it looks like the _dash-update-component request keeps firing. There is a json response of the text I want in the html span. However no _reload-hash request is ever fired (or at least does so only once to load the chart, but not populate it with data). _dash-update-component keeps firing. When I increase the interval, _reload-hash fires in equal proportions to _dash-update-component. However each request appears to have some sort of response in the response tab in chromium. Is this helpful? Does this make sense? I am not super well versed in web development, apologies in advance.