Possible to show Tooltips on hover?

Is there a way to add tooltips in streamlit?

I am building a streamlit app where a user can select different models to use to predict on some data.

Right now I’m using st.radio to select a model. I’d really like to do is show a tooltip on hovering on the different options so I can show an explanation of each model.

something like st.radio(options=list, tooltips=list).

Is this something I can already do using the format_func?

Hey @khalido,

This is not somthing supported right now, but is something you could do using the upcoming Custom Components if you’d like to try it out :slight_smile:

Do feel free to file a GH issue though so the eng. team can check if it’s easy to add into native Streamlit.

Fanilo

2 Likes