Error displaying map in jupyter lab
See original GitHub issueHi,
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
Issue Analytics
- State:
- Created 4 years ago
- Comments:29 (28 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 watch
from thejs
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.npm run watch
from thejs
directory, the other one runningjupyter 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…
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.