Highlights
- Introducing
st.experimental_fragment
to decorate functions and rerun them independently of the whole page. Check out the docs and give your apps a speed boost! - Introducing
st.html
to insert custom HTML into your app! Check out the docs for how to use it.
Notable Changes
-
st.audio
andst.video
allow looping and setting an end time (#8203, #8348). -
AppTest
allows switching pages withAppTest.switch_page
(#8280). -
format_func
is accessible inAppTest
for widgets that use it (#8189, #8019, #7679). - Column configuration now includes
AreaChartColumn
.LineChartColumn
no longer shows area (#8237). - Breaking change:
st.write
will no longer setunsafe_allow_html=True
when 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
packaging
version 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.status
correctly 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.popover
withuse_container_width=True
, the popover container’s minimum width will match the popover button (#8266, #8261). - Bug fix: Using
st.rerun
with a triggering widget inAppTest
no longer creates an infinite loop (#8264, #7768). - Bug fix: URLs are correctly decoded in
LinkColumn
if regex is used or if not using fully qualified URLs (#8258, #7064). - Bug fix:
st.query_params
only sends oneForwardMsg
when updating multiple parameters (#8205, #8199). Thanks, Asaurus1!