Dropdown Widget with Plotly in Python

I’m using pandas to plot a bubble chart and would like to add a dropdown menu. I found this example but it’s very hard to follow. Does anyone have a better example to plot online? Thanks

Try Plotly’s native dropdowns instead of using IPython widgets: