priority_high

Important

This is an experimental feature. Experimental features and their APIs may change or be removed at any time. To learn more, click here.

Rerun the script immediately.

When st.experimental_rerun() is called, the script is halted - no more statements will be run, and the script will be queued to re-run from the top.

If this function is called outside of Streamlit, it will raise an Exception.

Function signature[source]

st.experimental_rerun()

Was this page helpful?

editSuggest edits
forum

Still have questions?

Our forums are full of helpful information and Streamlit experts.