Highlights
-
Introducing
st.pdf
to beautifully render PDF documents in your app! -
Dataframes support cell selections!
-
You can add sparklines to
st.metric
! -
ListColumn
is now editable! -
Users can upload a directory of files with
st.file_uploader
orst.chat_input
.
Notable Changes
-
You can configure the labels of options in
SelectboxColumn
with a newformat_func
parameter (#12232, #6795). -
You can configure the duration of
st.toast
messages (#11872, #7047). -
st.form_submit_button
has akey
parameter (#12190, #12121). -
st.dataframe
andst.data_editor
havewidth
andheight
to use with flex layouts (#11930). -
st.image
,st.pyplot
, andst.graphviz_chart
have awidth
parameter 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_chart
is deprecated. Use thestreamlit-bokeh
custom 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.slider
will 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
, thecrossorigin
property 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:
CheckboxColumn
uses 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_chart
correctly handles null selections (#12222, #12191). -
Bug fix: When using
accept_new_options=True
withst.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.showEmailPrompt
is false (#12202, #12166). Thanks, wyattscarpenter! -
Bug fix: The drop area of
st.file_uploader
correctly truncates a long list of file types (#12192, #12189). -
Bug fix: The corner radius of
st.page_link
matches 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_uploader
while the widget is disabled (#12180, #12146). -
Bug fix:
pip install
works correctly in Windows (#8952). Thanks, Dev-iL! -
Bug fix: The drop-down menu for
st.time_input
uses theme colors consistently with other elements (#12157). -
Bug fix:
st.toast
uses 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_input
correctly resizes itself after the user submits a long message (#12132, #12079).