Highlights
Introducing
st.navigation
andst.Page
for a new way to define multipage apps! Check out the docs to learn more.
Notable Changes
st.bar_chart
can render charts horizontally.st.expander
supports adding an icon next to its label.st.columns
lets you set vertical alignment.Custom components support callback functions (#8633, #3977).
Fragments no longer support rendering widgets outside of their main body (#8756).
You can now customize axis labels for
st.area_chart
,st.bar_chart
,st.line_chart
, andst.scatter_chart
.The caching parameter
experimental_allow_widgets
is deprecated (#8817).Streamlit no longer supports legacy caching.
st.cache
is now an alias forst.cache_data
andst.cache_resource
(#8737).Streamlit supports
protobuf
version 5 (#8627).
Other Changes
Streamlit Hello uses
st.navigation
andst.Page
, the new, preferred method for declaring multipage apps (#8806).Streamlit no longer appends “· Streamlit” to the page title of apps, unless running on Community Cloud (#8900).
Streamlit magic and
st.write
usest.json
to displayst.secrets
(#8659, #2905).Streamlit doesn’t automatically check for a newer version on PyPi (#8841, #8453).
Bug fix: Custom component functions require importing
streamlit.components.v1
(#8666, #8644).Bug fix: Reverted change to handle Altairs
resolve_scale
method since it caused a regression (#8845, #8642).Bug fix: Images in Markdown do not overflow the Markdown container (#8794).
Bug fix: Clarified the error message for
st.selectbox
whenindex
is larger than the size ofoptions
(#8775, #8771).Bug fix: Streamlit correctly handles non-widget elements with IDs (#8770, #8768).
Bug fix: Docstrings correctly identify when
use_container_width=True
is the default (#8809).Bug fix: Streamlit has a consistent minimum element height for better vertical alignment (#8797, #8835, #8027, #8706).
Bug fix: Added check to ensure
SessionInfo
is initialized before performing actions (#8779, #8321, #7549).Bug fix: Dataframes use raw numbers without formatting by default (#8708, #8695).
Bug fix: Updated the error message for disallowed writes to Session State (#8720, #8715).
Bug fix: Streamlit doesn’t initialize
LocalSourcesWatcher
if file watching is disabled (#8741, #8738).Bug fix:
st.experimental_dialog
no longer has an invalid default value fortitle
(#8729).Bug fix: Removed deprecated kwargs in
ast.Call
to prevent type error (#8711). Thanks, JelleZijlstra!Bug fix:
st.experimental_dialog
is explicitly exported to avoid a type-checking error (#8728, #8712).