A Streamlit component that wraps Plotly charts and enables capturing events (e.g., click, hover, select) from the chart and passing them back to Streamlit for reactive updates. Version 0.0.6 requires Python >=3.6, currently in early/experimental stage with infrequent releases.
pip install streamlit-plotly-eventsVerified import paths — ran on the pinned version, not inferred.
Minimal example: render a scatter plot and capture click events. Returns list of dicts with point and curve info.
Always use keyword arguments: plotly_chart(fig, click_event=True)
if selected_points: st.write(selected_points) to avoid AttributeError
Stick to simple, single-trace figures. Test thoroughly.
Replace 'import streamlit_plotly_events' (with hyphens) with 'from streamlit_plotly_events import plotly_chart'.
Use click_event, hover_event, select_event instead.
No dependency data recorded yet.