ipyleaflet: Error displaying map in jupyter lab
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.

It’s working fine in a Jupyter Notebook
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 29 (28 by maintainers)
Awesome!
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:
npm run watchfrom thejsdirectory, 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--symlinkoption 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.npm run watchfrom thejsdirectory, the other one runningjupyter lab --watchfrom 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…
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.