Notable Changes
-
The colorparameter ofst.area_chart,st.bar_chart,st.line_chart, andst.scatter_chartsupports the basic color palette which can be configured with theming (#13739, #12694). -
You can use the new theme.chartDivergingColorsto set default diverging colors for Plotly, Altair, and Vega-Lite charts. -
You can configure the display of error help links with a new configuration option, client.showErrorLinks(#13472, #11238). Thanks, karubian! -
st.logosupports Material icons and emojis (#13416). Thanks, rahuld109! -
To prevent widgets from resetting when you change a parameter, widgets are transitioning to an identity based only on their keys (if provided). The following widgets use only their key for their identity:-
st.dataframe(with selections) -
st.area_chart -
st.bar_chart -
st.line_chart -
st.scatter_chart -
st.altair_chart -
st.vegalite_chart -
st.pydeck_chart -
st.date_input -
st.datetime_input -
st.radio -
st.select_slider
-
-
ListColumnandMultiselectColumnlet users select the text of their pills for copying (#13663). -
st.experimental_get_query_paramsandst.experimental_set_query_paramshave been removed. Usest.query_paramsinstead. -
st.experimental_userhas been removed. Usest.userinstead.
Other Changes
-
The warning about the proposed removal of .add_rows()shows in the browser. Please leave feedback (#13063). -
When a .streamlit/config.tomlfile is created after a Streamlit app is running, the file watcher will recognize it without restarting the Streamlit server (#13625, #11296). -
Bug fix: Path security validation improves protection against Server-Side Request Forgery (SSRF) and path traversal vulnerabilities (#13733). -
Bug fix: Wildcard URLs display as localhostin the browser URL and console output (#13720, #13712). -
Bug fix: Modals and drop-down menus don’t collapse the sidebar (#13653). -
Bug fix: st.bar_chartdoesn’t raise aKeyErrorwhen sorting melted data (#13695). -
Bug fix: st.multiselectandst.selectboxdon’t clear state when a custom class object is selected (#13648, #13646). -
Bug fix: Transient nodes used for spinners will correctly anchor themselves in the Streamlit DOM to avoid an empty delta path (#13674). -
Bug fix: Snowflake connections will re-initialize if closed (#13665). -
Bug fix: Nested containers under a spinner don’t raise a Bad delta path indexerror (#13659, #13658). -
Bug fix: SnowflakeConnection.query()correctly passes theparamsargument to caching (#13652, #13644). -
Bug fix: client.toolbarMode="viewer"correctly hides developer options from the settings menu (#13623). -
Bug fix: When using the experimental Starlette configuration, Streamlit auth can log users out of your identity provider and surface user tokens, consistent with recent updates (#13571). -
Bug fix: Streamlit will defensively not load packaged components with missing or invalid component names in their manifests (#13612). -
Bug fix: The width of file chips in st.chat_inputwas increased to reduce filename truncation (#13589). -
Bug fix: st.bar_chartdoesn’t raise an error about y-axis minimum and maximum when the bars have all the same value (#13590, #13584).