Highlights
Announcing horizontal flex containers! Configure the alignment, direction, and gap of containers to create dynamic layouts.
Notable Changes
st.logoutwill log the user out of their identity provider if the server metadata includesend_session_endpoint(#11901, #11900). Thanks, velochy!
You can configure the dismissibility of st.dialogand set callback functions (#9504, #12034). Thanks, souvikmaji!- ↔️ You can set a
widthparameter for buttons and popovers.
codeFontWeightcan be configured separately in the sidebar.
You can configure the WebSocket ping interval with the server.websocketPingIntervalconfiguration option (#12117, #12108).
Other Changes
The spinner design was unified across Streamlit commands (#12031).
Design and style tweaks (#12032, #11989, #11986, #11999, #12015, #11995, #11981, #11964).
Error logic and logging was improved to reduce confusion from asyncioruntime errors when unrelated errors are raised (#12008).
Dataframe column menus include an icon to show the column type and a button to copy the column name (#11303).
For convenience, there are additional “extras” installation options (#11760, #8233).
Additional checks are performed to validate the extension of uploaded files, but app developers are still responsible for checking and handling the security of uploaded files (#11884, #11883).
Button group widgets are identified by their command name in error messages (#11769, #11753). Thanks, bajajku!
For st.snow,st.balloons, chat avatars, and media elements, thecrossoriginproperty can be configured by hosts (#12087, #11948).
Bug fix: Ctrl+C will stop a Streamlit server in Windows, even if there is no active session (#12049, #6855).
Bug fix: st.line_chartuses the column order in the chart data instead of reordering them alphabetically (#12092, #12071).
Bug fix: Menu items set in st.set_page_configare not hidden whenclient.toolbarModeis set to"minimal"(#12091, #12083).
Bug fix: theme.codeFontWeightdoes not interfere with bold inline code (#12074, #11976).
Bug fix: To allow fractional pixel values, heading font sizes in theming configuration aren’t rounded (#12077, #11963).
Bug fix: Altair 5.4.0 and 5.4.1 have been excluded to prevent an upstream bug with reading dataframes (#12066, #12064).
Bug fix: Dataframe scrollbars have been tweaked to avoid sizing problems (#11936, #11921, #12053, #11985).
Bug fix: Linting accepts lists in addition to tuples for callback arguments in widgets (#12039).
Bug fix: To fix a deprecation warning, Altair theme syntax was updated (#12050).
Bug fix: st.navigationdoes not hide the menu when a single section is used withposition="top"(#12025, #12029).
Bug fix: The sidebar state does not reset when the window is resized (#12024, #12016).
Bug fix: st.pillsandst.segmented_controldon’t raise unintendedStreamlitDuplicateElementIderrors (#11982, #11975).