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.warningcan use Google Material Symbols for their icons.
Markdown supports background colors for text. Check out the feature demo app.
st.audioandst.videocan now be set to autoplay.st.videocan 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 perioddata types inst.dataframeandst.data_editor(#7987).
Streamlit supports using pydeck-cartowithst.pydeck_chart(#8422).
Additional snowflakerequirements were updated to allow Python versions 3.8 to 3.11 (#8538).
st.toastreceived visual improvements and now appears in the top right (#8433).
Visual tweaks for dialogs and modals.
Bug fix: st.write_streamreturns an empty string when passed a generator with no yield (#8560).
Bug fix: Widgets that support Nonevalues can be correctly set toNonethrough Session State (#8529, #7649).
Bug fix: If the initial value for st.date_inputis 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_scalemethod is handled correctly (#8497, #1667).
Bug fix: st.multiselectscorrectly handles sets when passed tooptionsordefault(#8471, #8466).
Bug fix: st.statusdoes not show the expander toggle when empty (#8369).
Bug fix: The width of vconcatcharts 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_uploadercallback is correctly executed once per file selection after the first selection (#8493, #4877).
Bug fix: Streamlit is compatible down to pillowversion 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.slideryields a Python error whenmin_valueis less than or equal tomax_value(#8413, #8342).
Bug fix: Time is offset correctly for Vega and Altair (#8278, #4342).