Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jupyter-matplotlib: Error displaying widget: model not found

I'm trying to install jupyter-matplotlib extension but can't make it work in a jupyterlab instance. Once installed by following the steps here:
https://github.com/matplotlib/jupyter-matplotlib
I get the error when executing a simple example:
Error displaying widget: model not found
screen capture of described behaviour

Here's the output of my $ conda list for relevant packages:

ipykernel 5.1.1
ipympl 0.2.1
ipython 7.6.1
ipython_genutils 0.2.0
ipywidgets 7.5.0
jupyter_client 5.3.1
jupyter_core 4.4.0
jupyterlab 1.0.2
jupyterlab_server 1.0.0

like image 209
Mario Viti Avatar asked Jul 14 '19 15:07

Mario Viti


Video Answer


1 Answers

Solved! Turned out ipywidget 7.5 breaks jupyter lab and it isaffecting other libraries too.

https://github.com/plotly/plotly.py/issues/1659

downgrading to 7 solved the issue for me (allthough 7 wrt 7.5 should be backward compatibile)!

Also be sure to match ipympl 0.2.1 with jupyter-matplotlib 0.3.0 labextension. jupyter labextension install [email protected]

like image 129
Mario Viti Avatar answered Sep 17 '22 03:09

Mario Viti