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 #342

Open
mbelletti opened this issue Jun 26, 2020 · 9 comments
Open

Error displaying widget: model not found #342

mbelletti opened this issue Jun 26, 2020 · 9 comments

Comments

@mbelletti
Copy link

Hi,
after updating jupyter & co. I'm not able anymore to show the map, I got instead:
Error displaying widget: model not found

In the console there is this error:

Unhandled Promise Rejection: Error: Module jupyter-gmaps, semver range 0.9.0 is not registered as a widget module

Is there something that I can do to fix it?

Thank you

Package             Version
------------------- -----------
appdirs             1.4.4
appnope             0.1.0
appscript           1.1.0
arcgis              1.8.1
asn1crypto          1.3.0
astroid             2.4.2
attrs               19.3.0
Babel               2.8.0
backcall            0.2.0
beautifulsoup4      4.9.1
black               19.10b0
bleach              3.1.5
bottle              0.12.18
bqplot              0.12.13
branca              0.4.1
bs4                 0.0.1
certifi             2020.6.20
cffi                1.14.0
chardet             3.0.4
click               7.1.2
colorama            0.4.3
crc16               0.1.1
cryptography        2.9.2
cycler              0.10.0
dataclasses         0.7
decorator           4.4.2
defusedxml          0.6.0
distlib             0.3.0
docutils            0.16
ebaysdk             2.2.0
entrypoints         0.3
fastapi             0.58.0
feedparser          5.2.1
filelock            3.0.12
flatlib             0.2.1
future              0.18.2
geographiclib       1.50
geojson             2.5.0
geopy               1.22.0
gevent              20.6.2
Glances             3.1.4.1
gmaps               0.9.0
googlemaps          4.4.1
greenlet            0.4.16
gunicorn            20.0.4
html5lib            1.1
idna                2.9
importlib-metadata  1.6.1
importlib-resources 2.0.1
inflection          0.5.0
ipykernel           5.3.0
ipyleaflet          0.13.0
ipysheet            0.4.4
ipython             7.15.0
ipython-genutils    0.2.0
ipywidgets          7.5.1
isort               4.3.21
jedi                0.17.1
Jinja2              2.11.2
json5               0.9.5
jsonpickle          1.4.1
jsonschema          3.2.0
jupyter             1.0.0
jupyter-client      6.1.3
jupyter-console     6.1.0
jupyter-core        4.6.3
jupyterlab          2.1.5
jupyterlab-launcher 0.13.1
jupyterlab-server   1.1.5
keyring             21.2.1
kiwisolver          1.2.0
lazy-object-proxy   1.5.0
lerc                0.1.0
lxml                4.5.1
MarkupSafe          1.1.1
matplotlib          3.2.2
mccabe              0.6.1
mistune             0.8.4
more-itertools      8.4.0
mpmath              1.1.0
nbconvert           5.6.1
nbformat            5.0.7
ndg-httpsclient     0.5.1
notebook            6.0.3
ntlm-auth           1.5.0
numpy               1.19.0
oauthlib            3.1.0
ortools             7.7.7810
packaging           20.4
pandas              1.0.5
pandocfilters       1.4.2
parso               0.7.0
pathspec            0.8.0
pbr                 5.4.5
pexpect             4.8.0
pickleshare         0.7.5
pip                 20.1.1
prometheus-client   0.8.0
prompt-toolkit      3.0.5
protobuf            3.12.2
psutil              5.7.0
psycopg2-binary     2.8.5
ptyprocess          0.6.0
pyasn1              0.4.8
pycparser           2.20
pydal               20200531.3
pydantic            1.5.1
Pygments            2.6.1
PyJWT               1.7.1
pylint              2.5.3
pymongo             3.10.1
pyOpenSSL           19.1.0
pyparsing           2.4.7
pyrsistent          0.16.0
pyshp               2.1.0
PySide2             5.15.0
pyswisseph          2.8.0.post1
python-dateutil     2.8.1
python-digitalocean 1.15.0
pytz                2020.1
PyYAML              5.3.1
pyzmq               19.0.1
qgrid               1.3.1
qtconsole           4.7.5
QtPy                1.9.0
Quandl              3.5.0
redis               3.5.3
regex               2020.6.8
reloader            0.6
requests            2.24.0
requests-ntlm       1.1.0
requests-oauthlib   1.3.0
requests-toolbelt   0.9.1
scipy               1.5.0
seaborn             0.10.1
Send2Trash          1.5.0
setuptools          47.3.1
shiboken2           5.15.0
simplegeneric       0.8.1
six                 1.15.0
slack-cleaner       0.7.4
slacker             0.14.0
soupsieve           2.0.1
starlette           0.13.4
stevedore           2.0.1
sympy               1.6
terminado           0.8.3
testpath            0.4.4
toml                0.10.1
tornado             6.0.4
traitlets           4.3.3
traittypes          0.2.1
typed-ast           1.4.1
urllib3             1.25.9
version-information 1.0.3
virtualenv          20.0.25
virtualenv-clone    0.5.4
virtualenvwrapper   4.8.4
walrus              0.8.1
wcwidth             0.2.5
webencodings        0.5.1
wheel               0.34.2
widgetsnbextension  3.5.1
wrapt               1.12.1
xarray              0.15.1
xlrd                1.2.0
XlsxWriter          1.2.9
xlwings             0.19.4
xlwt                1.3.0
yatl                20200430.1
zipp                3.1.0
zope.event          4.4
zope.interface      5.1.0

@MMeram
Copy link

MMeram commented Sep 14, 2020

I have the same error but not any additional text on the console. I followed these steps in the installation:

  • conda install gmaps
  • jupyter labextension install @jupyter-widgets/jupyterlab-manager
  • jupyter lab build

Then i just launch the jupyter lab and enable the extensions via extension manager additionally on the left pane.

If I start and run the example code '(earthquake heat map) via jupyter notebook I get the following but no maps:

Figure(layout=FigureLayout(height='420px'))

@PeterSanctus
Copy link

Greetings,

I do have exatly the same error.

Error displaying widget

Jupytar-lab 2.2.6 here

installed de package as it is explained in installation page:

  • jupyter labextension install @jupyter-widgets/jupyterlab-manager
  • conda install -c conda-forge gmaps
  • jupyter lab build

"
JupyterLab v2.2.6
Known labextensions:
app dir: C:\ProgramData\Anaconda3\share\jupyter\lab
@jupyter-widgets/jupyterlab-manager v2.0.0 enabled ok
jupyter-gmaps v0.9.0 enabled ok
"

in console window I have the issue "Figure(layout=FigureLayout(height='420px'))" when running the fig command.

thank you.

@walidsi
Copy link

walidsi commented Jul 1, 2021

I get the same error today: Error displaying widget: model not found in JupyterLab .. I created a new environment in Anaconda and followed the instructions for installing gmaps for JupyterLab.

FWIW, the same notebook works fine in jupyter and the map is displayed correctly.

what could be the problem?

image

@walidsi
Copy link

walidsi commented Jul 2, 2021

@PeterSanctus Hi Peter, I am having the same issue, did you manage to find a solution? Thanks!

@RehamFarhat
Copy link

RehamFarhat commented Jul 2, 2021

@walidsi

I got the same error after i updated the version of jupyter lab to 3.0.14,
changing the version to the older version fixed the error for now.
but i still wanna know how to fix the error on the last version, steps that I did:

updating all the packages, updating conda, and trying this command line:
jupyter labextension install @jupyter-widgets/jupyterlab-manager

none of the above steps helped.

image

@walidsi
Copy link

walidsi commented Jul 3, 2021

@RehamFarhat Thanks Reham. I finally found the solution to get gmaps to work on Jupyterlab 3.x. It is to uninstall the latest version of ipywidgets, then install version 7.4.2 of it, and finally perform a jupyter lab build.

pip install ipywidgets==7.4.2

Everything is working now as expected!

@RehamFarhat
Copy link

@walidsi ' didn't work for me, I tried what u suggest for the two versions: 3.0.14 and 3.0.11..

@OmarHatemZaki
Copy link

@walidsi Your method worked for me! Kudos <3
I had to install ipywidgets 7.5.1 though, 7.4.2 caused a conflict in my case.
Also the un-installation of ipywidgets causes some other packages to be removed including gmaps, so everything has to be reinstalled afterwards but it finally works fine.

@Atros04
Copy link

Atros04 commented Jul 2, 2022

Hi all, I am finding myself in the same predicament as the rest of you. Currently everything is installed and listed as running on gitbash. I currently have ipywidgets at 7.7.1, gmaps at 0.8.3 (yes, I know we are 0.9.0). I've done different combinations and permutations of versions of widgets and gmaps with no success.

My Anaconda is updated to 4.13.0 running Python 3.8. At this time, I can only assume that I need to downgrade my jupyter lab? I am hoping that someone here has a working version pairing I can be directed to that will make all this work.

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