Reviving this package: https://github.com/null-jones/streamlit-plotly-events/tree/master
With help from this PR: https://github.com/SamuelBradley/streamlit-plotly-events/tree/add-config
pip install streamlit-plotly-events2
selected_points = plotly_events(fig, hover_event=True, config=config)