FigureWidget and Click Events Online examples are not working

Hi guys;

I’m trying to follow the FigureWidgets example notebook found on the Plotly website here: Interactive Data Analysis with FigureWidget ipywidgets in Python but the example doesn’t work.

If you run it, you get the controls displayed but not the figure.

Same with this example Click Events in Python. If you run it, and click on the dots, you don’t get the color change in the animation.

I’d really appreciate if someone could update these notebooks, I’m trying to learn the fundamentals of using FigureWidgets for a project that I’m doing, and DASH is overkill.

Thanks!

The cause of this issue is ipywidgets 8.x and JupyterLab-widgets 1.x

In order to resolve:

pip install ipywidgets==7.7.1 jupyterlab-widgets==1.1.1

According to this github: issues 3686. Hope that helps anyone else having trouble.

1 Like

Unfortunately, I have the same problem to get the click events example working and it could not be solved by downgrading the packages. Also, since plotly 5.12, it should not be necessary to downgrade these packages anymore as far as I understood the thread of the mentioned github issue.

I have installed the following versions:
plotly=5.15.0
ipywidgets=8.0.6
jupyterlab-widgets=3.0.7

Any help would be highly appreciated.