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.

Error displaying map in jupyter lab

See original GitHub issue

Hi,

ipyleaflet was working fine in Jupyter Lab until today.

I read https://github.com/jupyter-widgets/ipyleaflet/issues/202, so I checked node. I’m using version 8.11.1.

Just in case, I run jupyter labextension install jupyter-leaflet and jupyter labextension install @jupyter-widgets/jupyterlab-manager, but no luck.

ipyleaflet_recorte

It’s working fine in a Jupyter Notebook

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:29 (28 by maintainers)

github_iconTop GitHub Comments

1reaction
martinRenoucommented, Apr 23, 2019

That is it! It’s working now, thank you!!

Awesome!

how do you handle development process??

Well, it depends.

If you are working on the Python code and you installed it using -e, you only need to restart the kernel and you would see your changes.

If you are working on the JavaScript code:

  • with the classical Jupyter Notebook: you only need to run npm run watch from the js directory, this command will run infinitely and build the JavaScript bundle every single time there is a change detected in the JavaScript code. The fact that you installed the nbextension using the --symlink option allows it. Once you built the bundle using NPM, you would need to refresh the page of your notebook in order to load the new JavaScript code.
  • with JupyterLab: you can use two terminals, one running npm run watch from the js directory, the other one running jupyter lab --watch from any directory. This second command will rebuild JupyterLab every time there is a change in the ipyleaflet labextension, it can be very slow when having a lot of labextensions.

This should be part of the documentation as well…

1reaction
martinRenoucommented, Apr 23, 2019

Oh yeah, that could be your issue 😃 Happy I could help! I think it is best practice to have the minimum installed in the global environment, and only have isolated environments for each project/task you have. This way you do not depend on packages from a different environment and you don’t have version collisions like the one you have.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Map does not display in jupyterlab, "Loading widget ... - GitHub
Map does not display in the cell output in jupyterlab, instead "Loading widget..." or "Error displaying widget: model not found"
Read more >
Stand-alone Jupyter Lab Environment Not Displaying...
I am getting this 'error displaying widget, model not found' when working through a stand-alone Jupyter Lab. Both jupyter widgets and arcgis- ...
Read more >
Ipyleaflet map object doesn't display in Jupyter Notebook but it ...
After a while, this message appears : "A Jupyter widget could not be displayed because the widget state could not be found. This...
Read more >
Jupyter Notebook NBextension Error for Google Map
I'm working on a project that will use gmap to display a Google map, and I'll need this jupyter extension to do so....
Read more >
FAQ - leafmap
How to display map object using ipyleaflet in jupyter notebook or jupyter Lab · ipyleaflet does not work in jupyter lab - "Error...
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