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")
Still have questions?
Our forums are full of helpful information and Streamlit experts.