1.63.0
Added 11
- Add `wrap` parameter to `st.pills` and `st.segmented_control`
- Add `on_change="ignore"` mode to st.slider
- Add automatic no-wrap for direct column widgets
- Add `type="step"` to `st.expander` and `st.status`
- Make st.rerun() work in widget callbacks
- Add `on_change="ignore"` mode to st.text_input
- Add configurable cache background-refresh TTL multiplier
- Add select_all and first-row Enter functionality to st.multiselect
- Add `wrap` parameter to text commands
- Add `icon` parameter to title, header, and subheader
- Add event-scoped fragment reruns via st.rerun(scope=<key>)
Fixed 9
- Skip syntax highlighting for very long code blocks
- Keep menu and JSON overlays clickable in `st.dialog`
- Clamp date/datetime input default bounds at date.min/max
- Match skills-nudge button labels to the card's text size
- Stop Cmd/Ctrl+C from opening clear-cache dialog
- Prevent markdown lists from overflowing narrow containers
- Echo guest-to-host messages to in-iframe hosts
- Restore Ctrl/Cmd+A in st.multiselect filter
- Show the correct year in the date picker header
From Streamlit
What's Changed
New Features 🎉
- [feature] Add
wraptost.pillsandst.segmented_controlby @lukasmasuch in https://github.com/streamlit/streamlit/pull/16369 - [feature] Add
on_change="ignore"mode to st.slider by @lukasmasuch in https://github.com/streamlit/streamlit/pull/14828 - [feature] Auto no-wrap for direct column widgets by @lukasmasuch in https://github.com/streamlit/streamlit/pull/16578
- [feature] Add
type="step"tost.expanderandst.statusby @lukasmasuch in https://github.com/streamlit/streamlit/pull/16558 - [feature] Make st.rerun() work in widget callbacks by @sfc-gh-lwilby-1 in https://github.com/streamlit/streamlit/pull/16158
- [feature] Add
on_change="ignore"mode to st.text_input by @lukasmasuch in https://github.com/streamlit/streamlit/pull/16605 - [feature] Configurable cache background-refresh TTL multiplier by @lukasmasuch in https://github.com/streamlit/streamlit/pull/16599
- [feature] Add select_all and first-row Enter to st.multiselect by @lukasmasuch in https://github.com/streamlit/streamlit/pull/16673
- [feature] Add wrap parameter to text commands by @lukasmasuch in https://github.com/streamlit/streamlit/pull/16617
- [feature] Add icon parameter to title, header, subheader by @lukasmasuch in https://github.com/streamlit/streamlit/pull/16418
- [feature] Add event-scoped fragment reruns via st.rerun(scope=) by @sfc-gh-lwilby-1 in https://github.com/streamlit/streamlit/pull/16161
Bug Fixes 🐛
- [fix] Skip syntax highlighting for very long code blocks (#11996) by @sfc-gh-dbyttow in https://github.com/streamlit/streamlit/pull/16567
- [fix] Keep menu and JSON overlays clickable in
st.dialogby @mayagbarnes in https://github.com/streamlit/streamlit/pull/16583 - [fix] Clamp date/datetime input default bounds at date.min/max by @mayagbarnes in https://github.com/streamlit/streamlit/pull/16582
- [fix] Match skills-nudge button labels to the card's text size by @sfc-gh-nbellante in https://github.com/streamlit/streamlit/pull/16482
- [fix] Stop Cmd/Ctrl+C from opening clear-cache dialog by @lukasmasuch in https://github.com/streamlit/streamlit/pull/16615
- [fix] Prevent markdown lists from overflowing narrow containers by @mayagbarnes in https://github.com/streamlit/streamlit/pull/16632
- [fix] Echo guest-to-host messages to in-iframe hosts by @lukasmasuch in https://github.com/streamlit/streamlit/pull/16647
- [fix] Restore Ctrl/Cmd+A in st.multiselect filter by @lukasmasuch in https://github.com/streamlit/streamlit/pull/16650
- [fix] Correct public widget overload typings by @lukasmasuch in https://github.com/streamlit/streamlit/pull/16633
- [fix] Error message bullets and uppercase-hex object reprs by @mayagbarnes in https://github.com/streamlit/streamlit/pull/16683
- [fix] Show the correct year in the date picker header by @mayagbarnes in https://github.com/streamlit/streamlit/pull/16706
- [fix] Harden AppTest for keys, disabled widgets, and navigation by @lukasmasuch in https://github.com/streamlit/streamlit/pull/16711
- [fix] Log all user-facing warnings to the console by @lukasmasuch in https://github.com/streamlit/streamlit/pull/16717
- [fix] Prevent upload hang when middleware reads the body first by @mayagbarnes in https://github.com/streamlit/streamlit/pull/16709
- [fix] Keep a time given before a date in st.datetime_input by @mayagbarnes in https://github.com/streamlit/streamlit/pull/16664
Other Changes
- [chore] Release v1.62.0 by @github-actions[bot] in https://github.com/streamlit/streamlit/pull/16579
- [docs] Recommend st.table for key-value lists by @lukasmasuch in https://github.com/streamlit/streamlit/pull/16576
- [docs] Clarify UploadedFile public API by @lukasmasuch in https://github.com/streamlit/streamlit/pull/16604
- [fix] Keep spinner moving and expose its label by @mayagbarnes in https://github.com/streamlit/streamlit/pull/16620
- [refactor] Add typed API exceptions for telemetry by @lukasmasuch in https://github.com/streamlit/streamlit/pull/16637
- [refactor] Add missing-required parameter error by @lukasmasuch in https://github.com/streamlit/streamlit/pull/16508
- [docs] Recommend icons for navigation pages by @lukasmasuch in https://github.com/streamlit/streamlit/pull/16658
- [refactor] Adopt shared parameter exception types by @lukasmasuch in https://github.com/streamlit/streamlit/pull/16668
- [refactor] Finish public API exception cleanup by @lukasmasuch in https://github.com/streamlit/streamlit/pull/16656
- [refactor] Adopt specific Streamlit API errors by @lukasmasuch in https://github.com/streamlit/streamlit/pull/16690
- [refactor] Split range errors into min/max vs interval by @lukasmasuch in https://github.com/streamlit/streamlit/pull/16701
- [refactor] Improve
st.contextandst.usertyping by @lukasmasuch in https://github.com/streamlit/streamlit/pull/16710 - [refactor] Migrate leftover st.* exception types by @lukasmasuch in https://github.com/streamlit/streamlit/pull/16707
- [docs] Document that st.rerun() works in widget callbacks by @sfc-gh-lwilby-1 in https://github.com/streamlit/streamlit/pull/16751
- [docs] Update agent skill for keyed fragment reruns by @sfc-gh-lwilby-1 in https://github.com/streamlit/streamlit/pull/16750
Full Changelog: https://github.com/streamlit/streamlit/compare/1.62.0...1.63.0