Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question Mark Tooltip within markdown / dataframe header #5766

Closed
Casyfill opened this issue Nov 25, 2022 · 2 comments
Closed

Question Mark Tooltip within markdown / dataframe header #5766

Casyfill opened this issue Nov 25, 2022 · 2 comments
Labels
area:ux/ui feature:tooltip type:enhancement Requests for feature enhancements or new features

Comments

@Casyfill
Copy link

Casyfill commented Nov 25, 2022

I am building a demo around an ML model, and need to explain the features I use to a broad audience. This means that ideally, I need a dedicated place to describe what each feature means.

I really like the tooltip option for streamlit input widgets, so I’d love to use the same widget within my markdown and elsewhere (e.g. in the dataframe header) - I have a list of feature names and be able to set a tooltip question mark with an explanation on hover near it. I know there are a few ways different markdown flavors do something like that. The way I see it it could be something like that:

st.markdown('''
- first feature ?[:question:](Tooltip text for the first feature)
- second feature ?[:exclamation:](Tooltip text for the Second feature)
''')
@Casyfill Casyfill added the type:enhancement Requests for feature enhancements or new features label Nov 25, 2022
@carolinedlu
Copy link
Collaborator

Hey @Casyfill, thanks for sharing this! I'm going to close this as a duplicate of #5355, but I've copied your thoughts above and added them to that thread. Please upvote #5355 so we know to prioritize it. Thanks!

@carolinedlu
Copy link
Collaborator

Duplicate of #5355

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:ux/ui feature:tooltip type:enhancement Requests for feature enhancements or new features
Projects
None yet
Development

No branches or pull requests

2 participants