Periodic app update

Hello everyone,

Here is a hack-ish way to force a streamlit app to update periodically, without relying on a dummy import, and still allowing to interact with widgets. It does that by spawning a Thread to perform a session request_rerun().

With such mechanism, we can imagine some sort of auto updating dashboard. Unfortunately, the constant Running... message can be quite stressful :sweat_smile:

streamlit-rerun-2020-05-26-20-05-35.webm

2 Likes

Thatโ€™s a really elegant solution, thanks for sharing!