{"library":"streamlit-plotly-events","title":"streamlit-plotly-events","type":"library","description":"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.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install streamlit-plotly-events"],"cli":null},"imports":["from streamlit_plotly_events import plotly_chart"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":"https://github.com/null-jones/streamlit-plotly-events","docs":null,"changelog":null,"pypi":"https://pypi.org/project/streamlit-plotly-events/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"import streamlit as st\nimport plotly.graph_objects as go\nfrom streamlit_plotly_events import plotly_chart\n\nfig = go.Figure(data=[go.Scatter(x=[1,2,3], y=[4,5,6], mode='markers')])\nselected_points = plotly_chart(fig, click_event=True, hover_event=False, select_event=False)\nif selected_points:\n    st.write(selected_points)","lang":"python","description":"Minimal example: render a scatter plot and capture click events. Returns list of dicts with point and curve info.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}