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.

Return the current value of a given Streamlit configuration option.

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

Function signature[source]

st.get_option(key)

Parameters

key (str)

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

Example

import streamlit as st

color = st.get_option("theme.primaryColor")
forum

Still have questions?

Our forums are full of helpful information and Streamlit experts.