Highlights
Introducing
st.experimental_dialog
! Create a modal overlay that can also rerun independently from the rest of your app. Check out the docs to learn how.
Notable Changes
st.toast
,st.chat_message
,st.set_page_config
,st.info
,st.success
,st.error
, andst.warning
can use Google Material Symbols for their icons.Markdown supports background colors for text. Check out the feature demo app.
st.audio
andst.video
can now be set to autoplay.st.video
can be muted.You can clear specific cached values for a cached function. Thanks, OscarSaharoy!
You can now set all query parameters with a single call to
st.query_params.from_dict
. Thanks, Asaurus1!
Other Changes
Streamlit supports Modin and Snowpark pandas DataFrames and Series (#8506).
Improved support for
period
data types inst.dataframe
andst.data_editor
(#7987).Streamlit supports using
pydeck-carto
withst.pydeck_chart
(#8422).Additional
snowflake
requirements were updated to allow Python versions 3.8 to 3.11 (#8538).st.toast
received visual improvements and now appears in the top right (#8433).Visual tweaks for dialogs and modals.
Bug fix:
st.write_stream
returns an empty string when passed a generator with no yield (#8560).Bug fix: Widgets that support
None
values can be correctly set toNone
through Session State (#8529, #7649).Bug fix: If the initial value for
st.date_input
is not set and today’s date falls outside the declared minimum or maximum, then the minimum or maximum will be used instead, whichever is closer (#8519, #6167).Bug fix: Altair’s
resolve_scale
method is handled correctly (#8497, #1667).Bug fix:
st.multiselects
correctly handles sets when passed tooptions
ordefault
(#8471, #8466).Bug fix:
st.status
does not show the expander toggle when empty (#8369).Bug fix: The width of
vconcat
charts in Vega and Altair is set correctly (#8498, #2751).Bug fix: Apps print beautifully and no longer show excessive whitespace (#8502, #7815).
Bug fix: Invalid escape sequences were removed to avoid warnings from
pytest
(#8510, #8501).Bug fix:
st.file_uploader
callback is correctly executed once per file selection after the first selection (#8493, #4877).Bug fix: Streamlit is compatible down to
pillow
version 7.1.0 instead of 9.1.0 (#8492, #8486).Bug fix: Widget values are correctly dropped when a script run is interrupted by switching pages (#8425, #7338).
Bug fix: Apps in dark mode will return to dark mode after printing (#8469, #7879).
Bug fix: Component ready state is dynamic to avoid race conditions that caused blank apps in Safari (#8434, #8362).
Bug fix:
st.slider
yields a Python error whenmin_value
is less than or equal tomax_value
(#8413, #8342).Bug fix: Time is offset correctly for Vega and Altair (#8278, #4342).