How to build a real-time live dashboard with Streamlit

If I do a while True: to always update. when will the loop end?
I would expect the loop to break when the user leaves the page, is streamlit interrupt the python thread running in the backgroud?

1 Like