What's Changed
Highlights
- 🤖 Introducing
st.status
to display output from long-running processes and external API calls. Works great withst.chat_message
! See our documentation for how to use this feature. - 🚥 Introducing
st.toggle
— an alternative tost.checkbox
when you need an on/off switch.
Notable Changes
- 🎨 Simple chart elements have a
color
parameter to set the color of your data points or series (#7022). - 🌈 Markdown supports rainbow and gray colors (#7106, #7179).
- 📏
st.header
andst.subheader
have optional, colored dividers (#7133). - 🚀 Deploying to Community Cloud is even easier—locally running apps have a deploy button in their toolbars (#7085, #6935).
- 🖌️
st.download_button
has a new parametertype
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). - 🧼 Assorted visual tweaks (#7050, #894).
- 🛏️ Replaced deprecated
imghdr
dependency withpillow
(#7081, #7027). - 🔢
st.number_input
's step buttons (+/-) are ignored during tabbing navigation (#7154). Thanks @denck007!
Other Changes
- 🍞 Bug fix: Toast messages are no longer blocked by
st.chat_input
(#7204, #7115). - 🕸️ Bug fix: Widget IDs are now stable to prevent inconsistent statefulness (#7003).
- 🦟 Bug fix: Browser autofill is correctly recognized within forms now (#7150, #7101, #7084).
- 🪱 Bug fix:
st.file_uploader
no longer causes session state to reset when a websocket connection is dropped and reconnected (#7149, #7025). - 🏎️ Bug fix: Pydeck JSON data is cached for improved performance (#7113, #5532).
- 🦋 Bug fix:
st.chat_input
no longer submits prematurely while typing with an input method editor (#6993). - 🐞 Bug fix: Label backgrounds for
st.tabs
are now transparent (#7070, #5707). - 🐝 Bug fix: Page width is no longer ignored when using the
help
parameter inst.button
(#7033, #6161). - 🐜 Bug fix: Tweaked Altair color specification for improved visibility in dark mode (#7061, #3343).
- 🪲 Bug fix:
st.chat_message
can correctly use local images as avatars (#7130). - 🐛 Bug fix: Specified that MD5 is not used for security (#7122, #7120).
- 🪄 Bug fix: Async function docstrings are ignored by Streamlit magic (#7143, #7137).
New Contributors
- @chakku000 made their first contribution in #6993
- @DueViktor made their first contribution in #7122
- @denck007 made their first contribution in #7154
Full Changelog: 1.25.0...1.26.0