Highlights
Introducing st.experimental_fragmentto decorate functions and rerun them independently of the whole page. Check out the docs and give your apps a speed boost!
Introducing st.htmlto insert custom HTML into your app! Check out the docs for how to use it.
Notable Changes
st.audioandst.videoallow looping and setting an end time (#8203, #8348).
AppTestallows switching pages withAppTest.switch_page(#8280).
format_funcis accessible inAppTestfor widgets that use it (#8189, #8019, #7679).
Column configuration now includes AreaChartColumn.LineChartColumnno longer shows area (#8237).
Breaking change: st.writewill no longer setunsafe_allow_html=Truewhen passed an object containing a_repr_html_method. For more information, see PR #8238.
Other Changes
Users can click on the widget label to focus on input for st.number_input,st.text_input, andst.text_area(#8155). Thanks, filiptammergard!
Streamlit supports packagingversion 24.x (#8338, #8328).
Bug fix: Streamlit now watches for changes to imported modules in addition to pages (#8372). Thanks, zyxue!
Bug fix: Overflowing toast messages are correctly truncated (#8337, #8330).
Bug fix: st.statuscorrectly updates to complete when using LangChain’sStreamlitCallbackHandler(#8331).
Bug fix: Custom components no longer show white backgrounds in dark themes (#8242, #8156, #7813).
Bug fix: Content area width is reduced when a fullscreen icon would otherwise cause horizontal overflow (#8279, #6990).
Bug fix: Custom components with undefined frame heights will render with a height of 0 (#8290, #8285).
Bug fix: Restored a check for active sessions to prevent apps from needlessly running when no users are connected (#8294).
Bug fix: Custom themes have precedence over embedding options (#8021, #7118).
Bug fix: Reverted the async timer to expire session storage cache to address computational efficiency (#8281).
Bug fix: When using st.popoverwithuse_container_width=True, the popover container’s minimum width will match the popover button (#8266, #8261).
Bug fix: Using st.rerunwith a triggering widget inAppTestno longer creates an infinite loop (#8264, #7768).
Bug fix: URLs are correctly decoded in LinkColumnif regex is used or if not using fully qualified URLs (#8258, #7064).
Bug fix: st.query_paramsonly sends oneForwardMsgwhen updating multiple parameters (#8205, #8199). Thanks, Asaurus1!