Hover / Events on cells

Hey,

i tried to look through the documentation but could not find anything.

Im looking for a way to have a lable/tooltip for each cell. I could not find way to achive this. The closed i got was to look through events but there was only on row select with a checkbox which is a bit off and i found some tooltip lableing but just for graphs.

Best regards,

Jet

Hey Jet, thanks for your question and welcome to the Streamlit community! :balloon: You’re not alone—many folks want cell-level tooltips in st.dataframe or st.data_editor, but as of now, Streamlit does not support tooltips for individual cells in dataframes or tables. Tooltips are only available for input widgets and some charting libraries (like Altair or Plotly), not for table cells or headers in st.dataframe or st.data_editor. This limitation is confirmed in multiple forum discussions and the official docs—there’s no built-in way to add per-cell tooltips yet. See the discussion here: Enhancing st.dataframe by adding a hover tooltips and How to add tooltip for st.dataframe.

If you need tooltips for tables, some users have used third-party components like AgGrid, which allow more customization (including tooltips), but this is not native Streamlit functionality. If you want to try AgGrid, check out this example: Using the tooltip component. For now, you might need to use workarounds or wait for this feature to be added to Streamlit. If you have a minimum reproducible example or want to share your code, feel free to post it—maybe someone in the community has a creative workaround!

Sources: