question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JupyterLab "Error displaying widget" when trying to display map

See original GitHub issue

Here is the screenshot of the issue: image

I only have ipyleaflet and jupyterlab-manager installed:

@jupyter-widgets/jupyterlab-manager v0.38.1  enabled  OK
jupyter-leaflet v0.10.1  enabled  OK

Reinstalling/googling didn’t help, not sure where to go from here.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
MaksimMisincommented, Apr 2, 2019

Somehow managed to solve it! (the issue was not related to refresh)

I was using the jupyterhub with multiple environments enabled (nb_conda extension). The root environment from which jupyterhub was launched had ipyleaflet==0.10.0 installed. I was trying to start ipyleaflet from a different environment with ipyleaflet==0.10.1 installed, and that didn’t work.

Installing the same version of ipyleaflet (0.10.0) to another environment has solved the problem, although I am not quite sure how.

Also, thank you for your prompt responses!

1reaction
martinRenoucommented, Apr 2, 2019

Yeah this should work… Do you have base widgets working? Or do you encounter the issue only for ipyleaflet?

from ipywidgets import Button

Button()
Read more comments on GitHub >

github_iconTop Results From Across the Web

Map does not display in jupyterlab, "Loading widget ... - GitHub
I want to share my experience with the same error: "Error displaying widget: model not found" . After upgrading to Jupyterlab 3, for...
Read more >
Error displaying widget: model not found (geemap)
I recently installed Jupyter Lab and have been trying to get a basic map to load with geemap. However, I get “Error displaying...
Read more >
Jupyter Lab issue displaying widgets (javascript error)
That error is consistent with one noted here in an issue report recently. The suggestion there is to change to ipywidgets version 7.7.2...
Read more >
Using the JupyterLab Environment | ArcGIS API for Python
1.8.2 of the Python API installed, 1.8.2 of the arcgis-map-ipywidget extension installed. jupyter labextension list will show you all versions of extensions ...
Read more >
Installation - leafmap
If the interactive map does not show up on Jupyter Notebook and JupyterLab, it is probably because the ipyleaflet extentsion is not installed...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found