Collecting data on clicking the scatter point

I’ve created a scatter plot with plotly/dash in python and I would like to be able to filter the table next to it by clicking at the certain scatter point. If I knew how to fetch data needed to filter the table by clicking on the point or making selection I would be able to establish that in pure python probably. Anyone can help?