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

dataframe row selection callback #4337

Closed
chanansh opened this issue Jan 31, 2022 · 2 comments
Closed

dataframe row selection callback #4337

chanansh opened this issue Jan 31, 2022 · 2 comments
Labels
feature:st.dataframe type:enhancement Requests for feature enhancements or new features

Comments

@chanansh
Copy link

chanansh commented Jan 31, 2022

(Note, you don't have to fill out every section here. They're just here for guidance. That said, nicely detailed feature requests are more likely to get eng attention sooner)

Problem

Dataframe table is not interactive for selecting a raw to focus on

Solution

Be able to select a row and use it as a variable, e.g.

selected_raw = st.dataframe(df)

Additional context

this functionality is working in Bokeh but I don't know how to transmit the callback back to streamlit
https://stackoverflow.com/questions/39025264/trigger-event-when-bokeh-datatable-selection


Community voting on feature requests enables the Streamlit team to understand which features are most important to our users.

If you'd like the Streamlit team to prioritize this feature request, please use the 👍 (thumbs up emoji) reaction in response to the initial post.

@chanansh chanansh added type:enhancement Requests for feature enhancements or new features status:needs-triage Has not been triaged by the Streamlit team labels Jan 31, 2022
@chanansh chanansh changed the title dataframe callback dataframe row selection callback Jan 31, 2022
@andfanilo
Copy link
Contributor

If you're using Bokeh, maybe streamlit-bokeh-events could do the trick, it seems from the demo gif in the README row selection to dataframe is posible

Have a nice day,
Fanilo 🎈

@LukasMasuch LukasMasuch added feature:st.dataframe and removed status:needs-triage Has not been triaged by the Streamlit team labels Jun 16, 2022
@LukasMasuch
Copy link
Collaborator

Closing this since we are already tracking this feature here.

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

No branches or pull requests

4 participants