What's Changed
New Features 🎉
- [feat] Allow specifying number of visible items via
expandedinst.navigationby @lukasmasuch in #14051 - [feat] Add
on_clickrerun support tost.link_buttonby @lukasmasuch in #14116 - [feature] Add file type shortcuts for
st.file_uploaderandst.chat_inputby @lukasmasuch in #14140 - Allow programmatically setting
st.dataframeselections by @lukasmasuch in #13594 - [feat] Extract leading icon from alert body by @lukasmasuch in #14173
- [feat] Serve static files with native content types by @lukasmasuch in #14090
- feat: allow external URLs in st.Page for navigation sidebar by @t0k0shi in #13691
- [feat] Add
AudioColumnandVideoColumntost.column_configby @lukasmasuch in #14032 - [feat] Add
st.menu_buttonwidget by @lukasmasuch in #13981 - [feature] Add
hide_indexandhide_headertost.tableby @lukasmasuch in #14113 - [feature] Add
heightparameter tost.chat_inputby @lukasmasuch in #14165 - [feature] Add
st.file_uploadersupport to AppTest by @lukasmasuch in #14341 - [feature] Always show the dataframe column visibility menu by @lukasmasuch in #14336
- [feature] Add support for relative static file serving URLs in media elements by @lukasmasuch in #14317
- [feature] Add
alignmentparameter tocolumn_configcolumns by @lukasmasuch in #14333 - [feat] Complete incomplete markdown syntax during streaming by @lukasmasuch in #13939
- [feature] Stable Block.id for passive keyed layout containers by @sfc-gh-lwilby in #14330
- [feature]
st.tabsstate persistence and CSS key class by @sfc-gh-lwilby in #14332 - [feature]
st.expander&st.popoverstate persistence and CSS key class by @sfc-gh-lwilby in #14356 - [feature] Add
requiredparameter tost.pillsandst.segmented_controlby @lukasmasuch in #14414 - Add support for pandas 3.x by @lukasmasuch in #13812
- [feature] Add
single-row-requiredselection mode tost.dataframeby @lukasmasuch in #14288 - [feature] Add
autoscrollparameter tost.containerby @lukasmasuch in #14502 - [feature] Add filter mode to select widgets by @lukasmasuch in #14537
- [feature] Add
st.iframecommand by @lukasmasuch in #14433
Bug Fixes 🐛
- [fix] Allow running streamlit with python optimization by @lukasmasuch in #14171
- [Fix] Fix
st.text_areaheight="content"not working by @lukasmasuch in #14228 - Fix stale anchor preserved when clearing transient nodes by @lukasmasuch in #14251
- fix(testing): initialize BidiComponentManager in AppTest mock runtime by @tysoncung in #14301
- [fix] Python 3.14 PEP 649 annotation compatibility across
inspect.signature()calls by @lukasmasuch in #14327 - [fix] Restore tooltip on st.multiselect selected options by @lukasmasuch in #14353
- [fix] Restore reactJsonViewCompat shim for local dev server by @lukasmasuch in #14391
- [Fix] Restore bound query params in URL with MPA by @mayagbarnes in #14374
- [fix] st.exception links overflow at small widths by @sfc-gh-lwilby in #14417
- [fix] Remove heading padding in horizontal containers for proper alignment by @sfc-gh-lwilby in #14419
- [fix] Streaming markdown with color directives shows artifact by @lukasmasuch in #14468
- [fix] Add Windows stability check to file watcher to reduce false positives by @lukasmasuch in #14174
- Fix #11308: update server.port after binding to port 0 by @joanaarnauth in #14372
- [fix] Add border to main menu in dark mode by @lukasmasuch in #14529
- [Fix] OpenMetrics compliance for
session_durationmetric by @mayagbarnes in #14476 - Fix programmatic dataframe selections to return AttributeDictionary by @lukasmasuch in #14455
Other Changes
- [refactor] Log widget state duplication warning to console instead of UI by @lukasmasuch in #14141
- [chore] Update emojis/material icons by @github-actions[bot] in #14186
- Update protobuf requirement from <7,>=3.20 to >=3.20,<8 in /lib by @dependabot[bot] in #14213
- [chore] Release v1.55.0 by @github-actions[bot] in #14203
- refactor(ccv2): rename BidiComponentResult to ComponentResult by @sfc-gh-bnisco in #14253
- [chore] Update emojis/material icons by @github-actions[bot] in #14282
- [chore] Update emojis/material icons by @github-actions[bot] in #14395
- Docs for
st.navigationexpandedparameter by @MathCatsAnd in #14451 - Docs for new file uploader types by @MathCatsAnd in #14453
- Docs for
st.link_buttonby @MathCatsAnd in #14452 - Docs for auto-extracting icons by @MathCatsAnd in #14458
- [chore] Update emojis/material icons by @github-actions[bot] in #14482
- Docs for menu button by @MathCatsAnd in #14495
- Docs for table hide options by @MathCatsAnd in #14497
- Docs for URL pages and navigation by @MathCatsAnd in #14480
- Docs for chat input height by @MathCatsAnd in #14499
- Add key-value list example for
st.tableby @lukasmasuch in #14474 - [Fix] Make
_stcore/metricsOpenMetrics-compliant by @mayagbarnes in #14538
New Contributors
- @Rohan5commit made their first contribution in #14154
- @t0k0shi made their first contribution in #13691
- @tysoncung made their first contribution in #14301
- @ianjch314 made their first contribution in #14354
- @joanaarnauth made their first contribution in #14372
Full Changelog: 1.55.0...1.56.0