Hello there đź‘‹

Thanks for stopping by! We use cookies to help us understand how you interact with our website.

By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.

Temporarily displays a message while executing a block of code.

Function signature[source]

st.spinner(text="In progress...")

Parameters

text (str)

A message to display while executing that block

Example

import time
import streamlit as st

with st.spinner('Wait for it...'):
    time.sleep(5)
st.success("Done!")
forum

Still have questions?

Our forums are full of helpful information and Streamlit experts.