✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

Plotly python - listen to events for entire plot as in plotly js

In python, I can listen to selection events on individual traces, but not on the entire plot as in JavaScript. I can add handlers to all traces within a plot, but then I get many different events triggered for one selection event on the plot. Is there a workaround? Thanks.