Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error displaying widget: model not found #286

Closed
louismartin opened this issue Jan 15, 2020 · 7 comments
Closed

Error displaying widget: model not found #286

louismartin opened this issue Jan 15, 2020 · 7 comments

Comments

@louismartin
Copy link

Environment

  • Operating System
    macOS Mojave
  • Python Version: $ python --version
    Python 3.7.4
  • How did you install Qgrid: (pip, conda, or other (please explain))
    Installed with pip commands from README
  • Python packages: $ pip freeze or $ conda list (please include qgrid, notebook, and jupyterlab versions)
$ pip freeze | grep -E "qgrid|jupy|ipy"
ipykernel==5.1.3
ipython==7.9.0
ipython-genutils==0.2.0
ipywidgets==7.5.1
jupyter==1.0.0
jupyter-client==5.3.4
jupyter-console==6.0.0
jupyter-core==4.6.1
jupyterlab==1.1.4
jupyterlab-server==1.0.6
qgrid==1.2.0
scipy==1.3.1
  • Jupyter lab packages (if applicable): $ jupyter labextension list
   app dir: /Users/louismartin/miniconda3/envs/dev/share/jupyter/lab
        @jupyter-widgets/jupyterlab-manager v1.0.3  enabled  OK
        jupyterlab-plotly v1.4.0  enabled  OK
        jupyterlab_vim v0.11.0  enabled  OK
        plotlywidget v1.4.0  enabled  OK
        qgrid v1.1.1  enabled  OK

Description of Issue

I know this issue has been raised before and should have been fixed by #275 but it does not seem to be fixed for me and all other issues are closed.
Here is the error that I get when using qgrid:

import qgrid
qgrid.show_grid(df_newsela)
> Error displaying widget: model not found

What steps have you taken to resolve this already?

Is there anything that I missed to make it work?

@Nestak2
Copy link

Nestak2 commented Jan 21, 2020

Same problem on my Ubuntu :( I am using anaconda, have been trying the solutions in the different issues, creating new clean environments for that, but it all ends with Error displaying widget: model not found

@Ameb
Copy link

Ameb commented Jan 21, 2020

Also having the issue on windows
conda list relevant packages

python                    3.7.6                h60c2a47_2

ipykernel                 5.1.3            py37h39e3cac_1
ipython                   7.11.1           py37h39e3cac_0
ipython_genutils          0.2.0                    py37_0
ipywidgets                7.5.1                      py_0
jupyter_client            5.3.4                    py37_0
jupyter_core              4.6.1                    py37_0
jupyterlab                1.2.5              pyhf63ae98_0
jupyterlab-git            0.9.0                    pypi_0    pypi
jupyterlab_server         1.0.6                      py_0
jupytext                  1.3.2                         0    conda-forge
qgrid                     1.2.0                    pypi_0    pypi
notebook                  6.0.2                    py37_0

jupyter labextension list

JupyterLab v1.2.5
Known labextensions:
   app dir: ...\share\jupyter\lab
        @aquirdturtle/collapsible_headings v0.5.0 enabled  ok
        @jupyter-widgets/jupyterlab-manager v1.1.0 enabled  ok
        @jupyterlab/celltags v0.2.0 enabled  ok
        @jupyterlab/git v0.9.0 enabled  ok
        @jupyterlab/toc v1.0.1 enabled  ok
        @lckr/jupyterlab_variableinspector v0.3.0 enabled  ok
        jupyterlab-jupytext v1.1.0 enabled  ok
        nbdime-jupyterlab v1.0.0 enabled  ok
        qgrid v1.1.1 enabled  ok

@metya
Copy link

metya commented Jan 23, 2020

confirm to the same issue.

jupyterlab 1.2.4
qgrid 1.2.0
python 3.8.1
linux manjaro 5.4.13

@Nestak2
Copy link

Nestak2 commented Jan 27, 2020

Problem fixed for me (see #261)! It works now in a conda environment with jupyterlab v=1.2.4 and qgrid v=1.2.0, but I think the fix is actually due to a jupyterlab pop-up window that appeared after creating my latest environment saying:

Build Recommended
JupyterLab build is suggested:
@jupyter-widgets/jupyterlab-manager needs to be included in build
jupyter-matplotlib needs to be included in build
qgrid needs to be included in build 

I clicked on the button "build" and then qgrid started working in this environment. I changed the version of jupyterlab and qgrid in my other environments, but there was no "Build recommended" pop-up and in these environments qgrid still doesn't work. Do you know how I can give in the terminal the command qgrid to be included in this environments?
Connected to this, qgrid only works if I first activate the working environment (conda activate env_qgr2) and start from there jupyter lab (jupyter lab). If I start from base or from another environment jupyter lab and then I change in jupyterlab with the "switch kernel" button to the correct one qgrid still doesn't work

My package versions:

$ conda list | grep -iE "jupy|ipython|note|qgrid|matplo|ipy|js"
ipykernel                 5.1.3            py37h5ca1d4c_0    conda-forge
ipympl                    0.4.1                      py_0    conda-forge
ipython                   7.11.1           py37h5ca1d4c_0    conda-forge
ipython_genutils          0.2.0                      py_1    conda-forge
ipywidgets                7.5.1                      py_0    conda-forge
json5                     0.8.5                      py_0    conda-forge
jsonschema                3.2.0                    py37_0    conda-forge
jupyter_client            5.3.4                    py37_1    conda-forge
jupyter_core              4.6.1                    py37_0    conda-forge
jupyterlab                1.2.4                      py_0    conda-forge
jupyterlab_server         1.0.6                      py_0    conda-forge
matplotlib-base           3.1.2            py37h250f245_1    conda-forge
nodejs                    13.7.0               h10a4023_0    conda-forge
notebook                  6.0.3                    py37_0    conda-forge
qgrid                     1.2.0                    pypi_0    pypi

$ jupyter labextension list
JupyterLab v1.2.4
Known labextensions:
   app dir: /home/nestor/anaconda3/envs/env_qgr2/share/jupyter/lab
        @jupyter-widgets/jupyterlab-manager v1.1.0  enabled  OK
        jupyter-matplotlib v0.5.0  enabled  OK
        qgrid v1.1.1  enabled  OK*

   local extensions:
        qgrid: /home/nestor/qgrid.git/js

@jnissin
Copy link

jnissin commented Feb 13, 2020

I had similar issues. I think this might be related to the issue and solution discussed here. Check your JavaScript console output to verify.

@gerrymanoim
Copy link
Contributor

Seems like people here found a solution to the core issue. If it is still a problem, please reopen. Thanks!

@vickysharma0812
Copy link

I am facing the same issue on my Mac when I run the code in JupyterLab.

Name: plotly
Version: 4.14.3

Name: notebook
Version: 6.2.0

Name: ipywidgets
Version: 7.6.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants