ipympl icon indicating copy to clipboard operation
ipympl copied to clipboard

loading widget issues 2.2.9 with matched versions from readme

Open cvanelteren opened this issue 5 years ago • 9 comments

Describe the issue

loading widget on jupyter lab (version 2.2.9) when plotting, e.g.

%matplotlib widget
from matplotlib.pyplot import subplots
fig, ax = plt.subplots()
fig.show()

Versions

JupyterLab v2.2.9
Known labextensions:
   app dir: /home/casper/miniconda3/share/jupyter/lab
        @axlair/jupyterlab_vim v0.12.4  enabled  OK
        @jupyter-widgets/jupyterlab-manager v2.0.0  enabled  OK
        jupyter-leaflet v0.13.3  enabled  OK
        jupyter-matplotlib v0.7.4  enabled  OK
        jupyterlab-plotly v4.14.1  enabled  OK*
        plotlywidget v4.14.1  enabled  OK

conda list ipympl lists

 (master) ✗ conda list | egrep "matplotlib|ipympl"
ipympl                    0.5.8                    pypi_0    pypi
matplotlib                3.3.1                    pypi_0    pypi

which should work according to the readme image

cvanelteren avatar Jan 05 '21 19:01 cvanelteren

Could you clarify what exactly your issue is?

thomasaarholt avatar Jan 05 '21 22:01 thomasaarholt

No output is generated; it states loading widget under jupyerlab, for notebook works flawlessly.

On Tue, 5 Jan 2021 at 23:05, Thomas Aarholt [email protected] wrote:

Could you clarify what exactly your issue is?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/matplotlib/ipympl/issues/289#issuecomment-754930604, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEUVDV2PEP7ZG53XQK3FZITSYOELDANCNFSM4VWGFEAA .

--

cvanelteren avatar Jan 05 '21 22:01 cvanelteren

anyone?

cvanelteren avatar Jan 15 '21 11:01 cvanelteren

Could you please open the dev tools console of your browser and report any error you see in there?

martinRenou avatar Jan 15 '21 13:01 martinRenou

@martinRenou Could you clarify 'dev tools'? The console is empty (no errors) with jupyter lab consoleit states that dev-mode loads no extensions which is probably not what you mean.

cvanelteren avatar Jan 20 '21 14:01 cvanelteren

I think he is referring to the javascript console in the browser: https://www.digitalocean.com/community/tutorials/how-to-use-the-javascript-developer-console

jasongrout avatar Jan 20 '21 14:01 jasongrout

Ah ok thanks! I get many errors but the main would be

Error: Module jupyter-matplotlib, semver range ^0.7.4 is not registered as a widget module

cvanelteren avatar Jan 20 '21 15:01 cvanelteren

Above your jupyter labextension list shows that extension is installed and enabled. Are there errors indicating why it failed to load? The error you copied above is just saying that that extension hasn't been loaded by the time we needed it, and is likely a symptom of earlier errors.

jasongrout avatar Jan 20 '21 15:01 jasongrout

I seem to have the same issue. Tried it with two browsers (Firefox and Falkon) and two different JupyterLab installations. ipywidgets IntSlider works, but the matplotlib widget always gets stuck at "Loading widget..." I've attached the output of the js console. There are a few more errors in addition to the one @cvanelteren mentioned. errors.txt

crakkhead avatar Feb 04 '21 00:02 crakkhead