Does streamlit support while 1 loops?

My application pulls data and stores it in a dataframe. The streamlit application displays this data. In order to constantly update the dataframe, I use a while 1 loop that continues to pull new data.

When I run this, streamlit doesn’t allow me to interact with the webapp, it only shows that it’s running. It only works when I don’t use a while loop.

Are there any workarounds to this?

Looks like you want to build a real-time dashboard.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.