Set config option.

Currently, only the following config options can be set within the script itself:
  • client.caching
  • client.displayEnabled
  • deprecation.*

Calling with any other options will raise StreamlitAPIException.

Run streamlit config show in the terminal to see all available options.

Function signature[source]

st.set_option(key, value)


key (str)

The config option key of the form "section.optionName". To see all available options, run streamlit config show on a terminal.

value (null)

The new value to assign to this config option.


Still have questions?

Our forums are full of helpful information and Streamlit experts.