Streamlit โ A faster way to build and share data apps.
Full Changelog: https://github.com/streamlit/streamlit/compare/1.28.0...1.28.1
st.data_editor
by @LukasMasuch in https://github.com/streamlit/streamlit/pull/7483
st.spinner
by @mayagbarnes in https://github.com/streamlit/streamlit/pull/7488
st.dataframe
and st.data_editor
by @LukasMasuch in https://github.com/streamlit/streamlit/pull/7345
st.data_editor
by @LukasMasuch in https://github.com/streamlit/streamlit/pull/7481
st.data_editor
by @LukasMasuch in https://github.com/streamlit/streamlit/pull/7485
st.dataframe
and st.data_editor
by @LukasMasuch in https://github.com/streamlit/streamlit/pull/7475
Full Changelog: https://github.com/streamlit/streamlit/compare/1.27.2...1.28.0
Full Changelog: https://github.com/streamlit/streamlit/compare/1.27.1...1.27.2
Full Changelog: https://github.com/streamlit/streamlit/compare/1.27.0...1.27.1
Highlights
st.scatter_chart
โ a new, simple chart element to build scatter charts Streamlit-y fast and easy! See our documentation.st.link_button
! Want to open an external link in a new tab with a bit more pizazz than a plain-text link? Check out our documentation to see how.st.rerun
, a command to interrupt your script and trigger an immediate rerun.Notable Changes
None
as an initial value for st.number_input
, st.selectbox
, st.date_input
, st.time_input
, st.radio
, st.text_input
, and st.text_area
!st.download_button
now uses target="_self"
instead of opening a new tab (#7151, #7132).pympler
dependency (#7193, #7131). Thanks, rudyardrichter!Other Changes
st.multiselect
now shows a correct message when no result matches a userโs search (#7205, #7116).st.experimental_user
now defaults to [email protected]
(#7219, #7215).st.slider
labels donโt overlap when small ranges are selected (#7221, #3385).st.pydeck_chart
(#7256, #5799).st.video
correctly updates with changes to start_time
(#7257, #7126).st.session_state
(#7280, #7206).st.map
correctly refreshes with new data (#7307, #7294).st.code
no longer triggers a CachedStFunctionWarning
(#7306, #7055).st.download_button
no longer resets with different data
(#7316, #7308).fastRerun
enabled (#7283, #6643).st.tabs
was improved to better handle and render conditionally appearing tabs (#7287, #7310, #5454, #7040).Full Changelog: https://github.com/streamlit/streamlit/compare/1.26.0...1.27.0
Highlights
st.status
to display output from long-running processes and external API calls. Works great with st.chat_message
! See our documentation for how to use this feature.st.toggle
โ an alternative to st.checkbox
when you need an on/off switch.Notable Changes
color
parameter to set the color of your data points or series (#7022).st.header
and st.subheader
have optional, colored dividers (#7133).st.download_button
has a new parameter type
for theming (#7056, #7038).st.chat_message
has ai and human presets for messages (#7094).st.radio
options support markdown and have captions (#7018, #7105, #6085).imghdr
dependency with pillow
(#7081, #7027).st.number_input
's step buttons (+/-) are ignored during tabbing navigation (#7154). Thanks @denck007!Other Changes
st.chat_input
(#7204, #7115).st.file_uploader
no longer causes session state to reset when a websocket connection is dropped and reconnected (#7149, #7025).st.chat_input
no longer submits prematurely while typing with an input method editor (#6993).st.tabs
are now transparent (#7070, #5707).help
parameter in st.button
(#7033, #6161).st.chat_message
can correctly use local images as avatars (#7130).Full Changelog: https://github.com/streamlit/streamlit/compare/1.25.0...1.26.0
Highlights
st.toast
โ a command to briefly show toast messages to users in the bottom-right corner of apps. See our documentation on how to use this feature.Notable Changes
st.map
now has parameters for latitude, longitude, color, and size to customize data points (#6896).st.multiselect
supports setting placeholders and specifying the maximum number of selections via the placeholder and max_selections keyword-only arguments, respectively (#6901, #4750). Thanks, @fhiroki!st.text_input
, st.number_input
, or st.text_area
(#6911, #3790).Other Changes
Full Changelog: https://github.com/streamlit/streamlit/compare/1.24.0...1.25.0
st.chat_message
and st.chat_input
โ two new chat elements that let you build conversational apps. Learn how to use these features in your LLM-powered chat apps in our tutorial.hash_funcs
.st.cache_data
and st.cache_resource
can hash timezone-aware datetime
objects (#6812, #6690, #5110).st.write
pretty-prints dataclasses using st.help
(#6750).st.button
's height is consistent with that of other widgets (#6738).react-range
frontend dependency to fix the memory usage of sliders (#6764, #5436). Thanks @wolfd!streamlit config show
honors newlines (#6758, #2868).min_value
and max_value
in st.number_input
(#6847, #6797).Full Changelog: https://github.com/streamlit/streamlit/compare/1.23.1...1.24.0
Highlights
st.session_state
was altered. Find out more about the new format in Access edited data.st.dataframe
and st.data_editor
columns (e.g. their title, visibility, type, or format). Keep an eye out for a detailed blog post and in-depth documentation upcoming in the next two weeks.st.experimental_connection
to create and manage data connections in your apps with the new Connecting to data docs and video tutorial.Notable Changes
hide_index
, specify the display order of columns with column_order
, and disable editing for individual columns with the disabled
parameter.ttl
parameter in st.cache_data and st.cache_resource accepts formatted strings, so you can simply say ttl="30d"
, ttl="1h30m"
and any other combination of w
, d
, h
, m
, s
supported by Pandasโs Timedelta constructor (#6560).st.file_uploader
now interprets the type
parameter more accurately. For example, "jpg" or ".jpg" now accept both "jpg" and "jpeg" extensions. This functionality has also been extended to "mpeg/mpg", "tiff/tif", "html/htm", and "mpeg4/mp4".global.disableWidgetStateDuplicationWarning
configuration option allows the silencing of warnings triggered by setting widget default values and keyed session state values concurrently (#3605, #6640). Thanks, @antonAce!Other Changes
st.beta_*
and st.experimental_show
due to deprecation and low-use (#6558)max_chars
and validate
for text columns, and min_value
, max_value
and step
for number columns (#6563).None
in returned data structures (#6544).(2^53) -1
(#6311, #6549).st.data_editor
and st.dataframe
related to auto-hiding the index column(s) based on the input data (#6659, #6598)st.number_input
and st.slider
(#6724).st.date_input
's date selector is equally visible in dark mode (#6072, #6630).st.set_page_config
have been updated to clarify that this command can be invoked once for each page within a multipage app, rather than once per entire app (#6594).st.json
no longer collapses multiple spaces in both keys and values with single space when rendered (#6657, #6663).