Avoiding greying during refresh

Hi I recently began to use streamlit to prototype a dashboard that refreshes every couple of seconds and it works great but is there a way to disable the greying that appears when the dashboard refreshes so it isn’t noticeable? Its currently a local app.

Hi John,

Have you tried using st.empty() ?

Quoting the documentation:
Inside a with st.empty(): block, each displayed element will replace the previous one.

There is a good example in the documentation here: st.empty - Streamlit Docs

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