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

jupyterlab 2.0.0 - Error displaying widget: model not found #299

Closed
ghuname opened this issue Mar 10, 2020 · 6 comments · Fixed by #301
Closed

jupyterlab 2.0.0 - Error displaying widget: model not found #299

ghuname opened this issue Mar 10, 2020 · 6 comments · Fixed by #301

Comments

@ghuname
Copy link

ghuname commented Mar 10, 2020

Environment

  • Operating System: Windows 10 64bit
  • Python Version: Python 3.7.4
  • How did you install Qgrid: pip
  • Python packages:
    pip:
    ipython-genutils==0.2.0
    ipython==7.8.0
    jupyter-client==5.3.4
    jupyter-core==4.6.1
    jupyterlab-server==1.0.7
    jupyterlab==2.0.0
    notebook==6.0.3
    qgrid==1.3.0

conda:

ipython 7.8.0 py37h39e3cac_0 anaconda
ipython_genutils 0.2.0 py37_0 anaconda
jupyter_client 5.3.4 py37_0 conda-forge
jupyter_core 4.6.1 py37_0 conda-forge
jupyterlab 2.0.0 py_1 conda-forge
jupyterlab_server 1.0.7 py_0 conda-forge
notebook 6.0.3 py37_0 conda-forge
qgrid 1.3.0 pypi_0 pypi

jupyter labextension list:

JupyterLab v2.0.0
Known labextensions:
app dir: C:\Users\User\Miniconda3\share\jupyter\lab
@jupyter-widgets/jupyterlab-manager v2.0.0 enabled ok
@jupyterlab/toc v3.0.0 enabled ok
jupyterlab-plotly v1.5.3 enabled ok
plotlywidget v1.5.3 enabled ok
qgrid2 v1.1.2 enabled ok

Uninstalled core extensions:
qgrid2

Description of Issue

Running:

import pandas as pd
import qgrid
df = pd.DataFrame({"a": [1, 2, 3, 4], "b": [5, 6, 7, 8]})
grid = qgrid.show_grid(df)
grid

produce an error: Error displaying widget: model not found

In browser console there are many errors:

image

@gerrymanoim
Copy link
Contributor

Hi ghuname - thanks for reporting this. The only thing that obviously stands out to me is the no provider for jupyter.extensions.jupyterWidgetRegistry. Can you try some of the steps in #261?

@ghuname
Copy link
Author

ghuname commented Mar 11, 2020

Hi garrymanoim, as the #261 is quite long and people have tried many things, can you please specify what you would like me to do exactly?

@graidl
Copy link

graidl commented Mar 12, 2020

I experience the same problem under Ubuntu and jupyterlab 2.01, all relevant packages are recent, pip qgrid 1.3.0 and and qgrid2 1.1.2 js part installed either in the official way or directly from the checked out git repo. Tried to follow the hints in #261, no success however. How may I possibly help?

@ghuname
Copy link
Author

ghuname commented Mar 13, 2020

@gerrymanoim, can you please help us a bit?

@zhihanyue
Copy link

zhihanyue commented Mar 13, 2020

Same problem under jupyterlab 2.0. I reinstalled ipywidgets, jupyterlab and qgrid many times. The error becomes "Loading widget..." forever.

I tried to modify the version in qgrid.widget.js, and still it doesn't work.

@stefaneidelloth
Copy link

Related: #350

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

Successfully merging a pull request may close this issue.

5 participants