Version 1.40.0

Highlights

  • :pill: Introducing st.pills to create a single- or multi-select group of pill-buttons.
  • :control_knobs: Introducing st.segmented_control to create a segmented button or button group.
  • :microphone: Announcing the general availability of st.audio_input, a widget to let users record sound with their microphones.

Notable Changes

  • :arrow_right: Markdown renders a limited set of typographical symbols (arrows and comparators).
  • :streamlit: You can use :streamlit: to render the Streamlit logo in Markdown.
  • :snake: st.text wraps text and no longer uses monospace font.
  • :bucket: You can set use_container_width for st.image. use_column_width is deprecated.
  • :date: st.date_input infers the first day of the week from the user’s locale (#9706, #5215).

Other Changes

  • :notes: Streamlit’s CLI tool accepts array values for configuration options (#9577).
  • :chains: Static file serving supports symlinks (#9147, #9146). Thanks, link89!
  • :rocket: Streamlit provides helpful links for deployment when an app is running locally (#9681).
  • :arrow_up_down: The fullscreen button for charts matches with the dataframe toolbar (#9721).
  • :running_man: The running-man icon has a brief delay before rendering to avoid an unnecessary flicker for fast running apps (#9732).
  • :paperclips: The ComponentRequestHandler allows symlinks (#9588).
  • :point_up_2: Streamlit works with pillow version 11 (#9742). Thanks, hauntsaninja!
  • :world_map: Deck.gl was upgraded to version 9.0.33 (#9636).
  • :microbe: Bug fix: st.latex stays center-aligned when using the help keyword argument (#9698, #9682). Thanks, emmagarr!
  • :fly: Bug fix: Apps correctly access local storage on Android (#9744, #9740).
  • :spider: Bug fix: Cached class methods can be cleared (#9642, #9633).
  • :lady_beetle: Bug fix: Streamlit clears fragment auto-reruns when a user changes pages. This prevents an invalid index (#9617).
  • :honeybee: Bug fix: st.page_link margins are correct (#9625).
  • :ant: Bug fix: Form widgets show submission instructions when in focus (#9576, #7079).
  • :beetle: Bug fix: st.navigation correctly reconciles client.showSidebarNavigation (#9589, #9581).
  • :bug: Bug fix: st.text_area requires a minimum height of 68px which fits two lines (#9561, #9217).
  • :nail_care: Bug fix: Various styling fixes (#9529, #8131, #9555, #9496, #9554, #9349, #7739).
6 Likes

:slight_smile: … but the default value is False :frowning:


Sidenote: if you find yourself always adding use_container_width to buttons, images, dataframes, etc., there is this small patch to make all components to follow a single default. See an example:

If you don’t set width or use_container_width, it will use the image’s natural size (up to the width of the parent container). So if the image is large enough, it will naturally be full width. If it defaulted to full width, then a smaller image would be upscaled which is unlikely to be what people want… :slight_smile:

2 Likes

but the default value is False

Hey, we discussed setting it to True by default. But as Debbie pointed out, this might be weird for small images (e.g. a company logo), so we kept it at False for now. We will change the default for other elements like dataframes and charts though.

When would be Native authentication support release?

1 Like

onewesong
When would be Native authentication support release?

Interested in this as well

It is planned for this quarter in the roadmap. Currently under development.

:male_detective: Authentication & st.user :construction_worker_man: Development
Add authentication to your Streamlit app with a config file, and check via st.user which user is logged in.

2 Likes

Nice, I see that in the roadmap as well :ok_hand:

st.pills is a nice addition ! :balloon:
Unfortunately, you can’t prevent a pill from being deselected for a language selection for example.
I hope to see this option added in the next update.

3 Likes

Same for st.segmented_control. Would be nice to have a “strict_single” selection mode that makes them work the same as radio buttons.

3 Likes

What is the difference between st.segmented_control and st.pills. and how it affects their use?

Styling