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

st.experimental_rerun()

Was this page helpful?

editSuggest edits
forum

Still have questions?

Our forums are full of helpful information and Streamlit experts.