Configuration
Configuration file
Configures the default settings for your app.
your-project/
├── .streamlit/
│ └── config.toml
└── your_app.py
Get config option
Retrieve a single configuration option.
st.get_option("theme.primaryColor")
Set config option
Set a single configuration option. (This is very limited.)
st.set_option("deprecation.showPyplotGlobalUse", False)
Set page title, favicon, and more
Configures the default settings of the page.
st.set_page_config(
page_title="My app",
page_icon=":shark:",
)
Still have questions?
Our forums are full of helpful information and Streamlit experts.