Black Lives Matter. Please consider donating to Black Girls Code today.

How can I improve the response time of a scatter plot updated via events?

I plot data in a scatter plot from a pandas DataFrame with a lot of rows (approx 30000). The plots are generated in a Jupyter Notebook. I’m updating the data displayed data based on events (on_click(), on_select(), etc.). As far as I know Scattergl() usually used for large datasets (works well) does not provide support for events.

The response on my performant machine is super slow. Is there a way to improve the responsiveness somehow? What responsiveness could I expect when implementing the same functionality in a Dash app?