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?
Streamlit added official support for tooltips from version 0.79.0 onwards.
The syntax is st.radio(options=list, help=tooltip_text) where tooltip_text can be any valid markdown text you have defined.