ngallo1
February 16, 2023, 7:02am
1
I would like to put a small help icon, as exists for other widgets like st.slider, near a table or data frame I am displaying to provide more information when a user mouses over it. Something like
st.dataframe(df_weather, help="Weather data collected in NYC")
What would be the best way to accomplish something like this? I want to avoid displaying this information directly to the app.
ferdy
February 16, 2023, 11:03am
2
Looks like a nice feature request to the dev.
2 Likes
ngallo1
February 17, 2023, 7:06pm
3
Do I need to make an explicit request or do they take requests from this forum?
GitHub is the best place for feature requests as it is the official place the devs track issues/requests.
I see that there is a current request for a general-use tool tip that you may be interested in upvoting:
opened 04:29AM - 15 Sep 22 UTC
type:enhancement
### Problem
We find it difficult to make charts 100% self-explanatory. There is… always some knowledge assumed, otherwise we'd have to put a load of text onto the dashboard that users only ever read once, after which it just becomes clutter. We've tried using `st.expand` but they still take up space when collapsed, and lots of them on a dashboard is not a great look.
### Solution
Provide a function called something like `st.help` or `st.hint` that renders as a (?) icon, where hovering _or clicking_ on the icon pops up a panel with the relevant help content.
Basically similar to the help icons on input widgets like `st.selectbox` but with more space for help content.
```python
with st.help("using this chart"):
st.markdown("Use this chart to see which...")
```
---
Community voting on feature requests enables the Streamlit team to understand which features are most important to our users.
**If you'd like the Streamlit team to prioritize this feature request, please use the 👍 (thumbs up emoji) reaction in response to the initial post.**
2 Likes