Bring Drag & Drop to Dash with Dashboard Engine. 💫 Learn how at our next webinar!

How to update dash by another script?

I have a script that produces CSV files every 5 minutes and dash script reads these CSV files. I want to update the dash script when another script runs. What’s the solution? without using the Interval method.

You can use the Interval component to update the web page regularly (e.g. once per minute), or you could use the WebSocket component from dash-extensions to push the changes, when they are ready.

1 Like

Thanks. I don’t want to use the Interval. Can I send a command from another script to dash script for updating? could you please explain more?

Here is some inspiration,

For your use case, i guess you would run the code to collect the data, and then broadcast a message whenever new data arrives.