Highlights
Introducing st.contextto read headers and cookies!
Introducing st.feedbackto collect ratings and sentiment from your users!
Announcing the general availability of st.fragment, a decorator that lets you rerun functions independently of the whole page.
Announcing the general availability of st.dialog, a decorator that lets you create modal dialogs.
Notable Changes
You can use icons from the Material Symbols library in Markdown!
You can pass graphviz.Sourceobjects tost.graphviz_chart.
You can modify the stacking behavior for st.bar_chartandst.area_chart.
Within a fragment, you can scope st.rerunto the fragment.
Streamlit supports nested fragments (#8931, #8635).
Fragments can be used in callback functions (#8916, #8591).
Other Changes
Material Symbols are rounded instead of outlined (#8998).
Streamlit supports Numpy version 2.0 (#8940).
We’ve updated emoji validation for new emojis (#8923).
We’ve removed several experimental commands with new, generally available versions (#8943).
We’ve removed deprecated configuration options per their announced expiration date (#9005, #9013, #9018).
Bug fix: Nested fragments rerun correctly when a child fragment precedes a widget in the parent fragment (#9114).
Bug fix: Streamlit validates file paths before performing additional checks when using static file serving for improved security (#8990).
Bug fix: st.mapdisplays at the correct width insidest.expander(#9070, #8004).
Bug fix: Streamlit displays the correct (Windows) path for secrets.tomlin an error message (#9061, #6147).
Bug fix: st.switch_pagecorrectly clears non-embed query parameters when the user switches pages (#9059, #9050).
Bug fix: Custom themes display correctly for multipage elements like st.page_link(#8994, #8978).
Bug fix: st.snowandst.balloonsdon’t show in prints (#9053, #7790).
Bug fix: We’ve improved the default formatting for st.number_input(#9035, #7163).
Bug fix: An st.navigationexample was corrected (#9027, #9026). Thanks, mahotd!
Bug fix: Dialogs no longer have a brief delay when closing (#9023, #8747).
Bug fix: Streamlit correctly raises a KeyErrorwhen encountered in a fragment instead of a misleading, fragment-related error (#9011, #8494).
Bug fix: Streamlit doesn’t clear MediaFileManageron fragment reruns to prevent invalid references (#9010, #8932).
Bug fix: Custom themes are correctly removed when deleted (#8989, #8962).
Bug fix: Streamlit supports non-unix style paths for correct multipage routing in Windows (#8988, #8958).
Bug fix: Using st.rerunin a fragment will not cause the app’s main body content to render in the fragment in rare events (#8798).
Bug fix: When an exception is raised within a fragment, Streamlit shows the error message within the fragment (#8868).