Widgets can customize how to hide their labels with the label_visibility parameter.
st.map adds zoom buttons to the map by default.
↔️ st.dataframe supports the use_container_width parameter to stretch across the full container width.
Improvements to st.dataframe sizing: Column width calculation respects column headers, supports double click between column headers to autosize, better fullscreen support, and fixes the issue with the width parameter.
Other Changes
st.time_input allows for keyboard-only input (#5194).
st.experimental_memo will warn the user when using ttl and persist keyword argument together (#5032).
st.number_input returns consistent type after rerun (#5359).
st.sidebar UI fixes including a fix for scrollbars in Firefox browsers (#5157, #5324).
Improvements to usage metrics to guide API development.
Will the official Streamlit roadmap be updated too? IMO having visibility of upcoming features and improvements is critical. Helps us developers decide if Streamlit is the right framework for an app idea, if it’s worth developing a custom component vs. waiting for the Streamlit-native feature already in the roadmap (e.g., st.dataframe improvements) vs. create a feature request, etc. Thanks again!
Nice update. I got a lot of warning logs like below:
“label got an empty value. This is discouraged for accessibility reasons and may be disallowed in the future by raising an exception. Please provide a non-empty label and hide it with label_visibility if needed.”
But it is hard for me to locate which widget missed the label arg. There are too many widget to be checked. It would be great if the log specifies the widget names which need the ‘label’ arg. Thanks.
Hi Tony,
I’ve just upgraded my streamlit version and received this warning message too. Like you, I’ve too many widgets to check and using Jupyter notebook doesn’t help either.
Could you advise me as to how you went about your investigation to find the widget in question? thanks.
I’ve finally found the source of the problem. I assigned (intentionally) a null value to the selectbox label (in this case, text) as such:
option = st.sidebar.selectbox(text,some_list,index=0) (where text = ‘’)
The latest streamlit version does not like null value, so to get past its warning message, I assign ’ ’ (a space in between the quotes) to my text label. That works and resolves my problem.
@finavatar Actually it is not straightforward to locate which widget causes this warning from the app side, not to mention when you use some 3rd party streamlit libraries. My suggestion is to add the widget name info in Streamlit logs.