Skip to content

'Error displaying widget: model not found' in JupyterLab 2.0.0 #193

@pythonic2020

Description

@pythonic2020

Hi,

I just installed JLab 2.0.0, and ipympl 0.5.2 will not display plots with the referenced error. I re-installed the labextensions. When I first started JLab, I got an error regarding the re-build of ipympl. Did ipympl build correctly with the new Jlab version? How can I re-build ipympl for JLab?

I get these JS errors:

Could not instantiate widget manager-base.js:258:47
_make_model manager-base.js:258
l manager-base.js:38
s manager-base.js:23
s manager-base.js:10

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

ipympl is working fine in a Notebook. I'm using Firefox, and I have refreshed cache.

Thanks in advance.

Setup:

>conda -V
conda 4.8.2
>conda list "ipympl|python|jupyter|notebook|conda|widgetsnbextension|nodejs"
# packages in environment at C:\Users\me\Anaconda3\envs\forge:
#
# Name                    Version                   Build  Channel
_anaconda_depends         2019.03                  py37_0
anaconda                  custom                   py37_1
anaconda-client           1.7.2                    py37_0
anaconda-navigator        1.9.12                   py37_0
anaconda-project          0.8.4                      py_0
conda-package-handling    1.6.0            py37h62dcd97_0
conda-verify              3.4.2                      py_1
ipympl                    0.5.2                      py_0    conda-forge
ipython                   7.12.0           py37h5ca1d4c_0
ipython_genutils          0.2.0                    py37_0
jupyter                   1.0.0                    py37_7
jupyter_client            6.0.0                      py_0    conda-forge
jupyter_console           6.1.0                      py_0
jupyter_core              4.6.3                    py37_0    conda-forge
jupyterlab                2.0.0                      py_0    conda-forge
jupyterlab_server         1.0.6                      py_0
jupyterthemes             0.20.0                     py_1    conda-forge
msgpack-python            1.0.0            py37he980bc4_0    conda-forge
msys2-conda-epoch         20160418                      1
nodejs                    13.9.0                        0    conda-forge
notebook                  6.0.3                    py37_0
python                    3.7.6                h60c2a47_2
python-dateutil           2.8.1                      py_0
python-jsonrpc-server     0.3.4                      py_0
python-language-server    0.31.7                   py37_0
python-libarchive-c       2.9                      py37_0    conda-forge
widgetsnbextension        3.5.1                    py37_0
>jupyter labextension list
JupyterLab v2.0.0
Known labextensions:
   app dir: C:\Users\me\Anaconda3\envs\forge\share\jupyter\lab
        @jupyter-widgets/jupyterlab-manager v2.0.0-rc.3 enabled  ok
        jupyter-matplotlib v0.7.1 enabled  ok

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions