How to detect a single cell selection on the st.dataframe component

Hi all,

I like the dataframe component a lot, but I wonder how to specify that
I want to detect only single cell selections. I’m doing it like this

    df = st.dataframe(
        get_data_frame(),
        on_select=selected,
        hide_index=True,
        key="df",
        selection_mode=["single-column", "single-row"],
        )

but this seems not to work.

Single cell selection events aren’t yet supported, but they are on the radar. You can upvote the GitHub issue to let our devs know it’s something to prioritize:

Hi @mathcatsand , does that mean multi-cell selection events are supported, or are no cell selection events supported yet?

Only rows and columns can return selections at this time. Streamlit can’t identify a generic group of cells.

Individual cells can be selected by the user, but that’s just a frontend visualization that doesn’t return selection data to the Python backend.

Ok thank you, I’ve upvoted the GitHub issue you posted