Stops execution immediately.

Streamlit will not run any statements after st.stop(). We recommend rendering a message to explain why the script has stopped. When run outside of Streamlit, this will raise an Exception.

Function signature

st.stop()

Was this page helpful?

editSuggest edits
forum

Still have questions?

Our forums are full of helpful information and Streamlit experts.