Highlights
-
Introducing st.pdfto beautifully render PDF documents in your app! -
Dataframes support cell selections! -
You can add sparklines to st.metric! -
ListColumnis now editable! -
Users can upload a directory of files with st.file_uploaderorst.chat_input.
Notable Changes
-
You can configure the labels of options in SelectboxColumnwith a newformat_funcparameter (#12232, #6795). -
You can configure the duration of st.toastmessages (#11872, #7047). -
st.form_submit_buttonhas akeyparameter (#12190, #12121). -
st.dataframeandst.data_editorhavewidthandheightto use with flex layouts (#11930). -
st.image,st.pyplot, andst.graphviz_charthave awidthparameter to use them with flex layouts (#11952, #12212). -
Users can access the underlying data of a Vega chart through the toolbar. This includes all data passed to the chart, even if it’s not displayed (#10311). -
st.bokeh_chartis deprecated. Use thestreamlit-bokehcustom component instead. -
We removed deprecated commands and parameters: st.experimental_dialog,st.experimental_fragment, and caching’sexperimental_allow_widgets(#12167).
Other Changes
-
For better performance, st.sliderwill not rerun the app until the user releases the slider thumb (#11879, #4541). -
For improved custom theming, single mark charts use the first categorical chart color (#12162). -
For st.logo, thecrossoriginproperty can be configured by hosts (#12226). -
The colored decoration line at the top of Streamlit apps was removed (#12155). -
The copy-to-clipboard function of multiple elements gives a checkmark feedback to users when they copy something (#12141, #12172). -
Users can quickly hide or unhide all columns in a dataframe (#12164, #12082). Thanks, plumol! -
Material icons were updated (#12264). -
Bug fix: CheckboxColumnuses the radii from the theming configuration options (#12263). -
Bug fix: A column’s menu is not accessible when the column is hidden (#12233, #12230). Thanks, plumol! -
Bug fix: Streamlit correctly caches Pydantic models (#12137, #10348). -
Bug fix: st.plotly_chartcorrectly handles null selections (#12222, #12191). -
Bug fix: When using accept_new_options=Truewithst.selectbox, mobile users can access their keyboards (#12219, #12205). -
Bug fix: Streamlit does not raise an error when the user’s email is empty and server.showEmailPromptis false (#12202, #12166). Thanks, wyattscarpenter! -
Bug fix: The drop area of st.file_uploadercorrectly truncates a long list of file types (#12192, #12189). -
Bug fix: The corner radius of st.page_linkmatches the navigation widget instead of the border radius configured for buttons (#12181). -
Bug fix: Cached replay correctly handles element height and width for flex layouts (#12183). -
Bug fix: When a client disconnects from a Streamlit server and the user dismisses the warning, the client will re-raise the warning while the app remains disconnected (#12178, #12113). -
Bug fix: Identity provider logout was reverted to prevent redirect failures in st.logout()(#12179). -
Bug fix: Currency symbols in column configuration are narrowly formatted (#11895). -
Bug fix: Users can’t remove files from st.file_uploaderwhile the widget is disabled (#12180, #12146). -
Bug fix: pip installworks correctly in Windows (#8952). Thanks, Dev-iL! -
Bug fix: The drop-down menu for st.time_inputuses theme colors consistently with other elements (#12157). -
Bug fix: st.toastuses custom theme colors (#12160, #11951). -
Bug fix: The width handling of custom components was updated to work with horizontal containers (#12148). -
Bug fix: st.chat_inputcorrectly resizes itself after the user submits a long message (#12132, #12079).
