How to get the interactive data from a plotly figure?

What I’m trying to do:
Get the interactive response from selecting or clicking or hoving on a plolty chart. Something like a mini app in a figure such as Interactive Data Analysis with FigureWidget ipywidgets | Python | Plotly

What I’ve tried and what’s not working:
I can plot any Figure object but cannot get the interactive meta data.