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 trying ipyleaflet-0.4.0

See original GitHub issue

I get this error that I don’t undertand (on Windows/Winpython):

Disabling terminals plugin because they are not available on the server
main.bundle.js:170990 Starting WebSocket: ws://localhost:8888/api/kernels/7e61aa74-e3f6-4fa0-804d-fc09c2dae816
main.bundle.js:171758 Kernel: connected (7e61aa74-e3f6-4fa0-804d-fc09c2dae816)
main.bundle.js:148306 Could not instantiate widget
(anonymous) @ main.bundle.js:148306
main.bundle.js:49724 Error: Could not create a model.
    at promiseRejection (main.bundle.js:49724)
    at <anonymous>
promiseRejection @ main.bundle.js:49724
main.bundle.js:148306 Could not instantiate widget
(anonymous) @ main.bundle.js:148306
main.bundle.js:49724 Error: Could not create a model.
    at promiseRejection (main.bundle.js:49724)
    at <anonymous>
promiseRejection @ main.bundle.js:49724
main.bundle.js:148306 Could not instantiate widget
(anonymous) @ main.bundle.js:148306
main.bundle.js:49724 Error: Could not create a model.
    at promiseRejection (main.bundle.js:49724)
    at <anonymous>
promiseRejection @ main.bundle.js:49724
main.bundle.js:148306 Could not instantiate widget
(anonymous) @ main.bundle.js:148306
main.bundle.js:49724 Error: Could not create a model.
    at promiseRejection (main.bundle.js:49724)
    at <anonymous>
promiseRejection @ main.bundle.js:49724
main.bundle.js:153773 Error displaying widget
main.bundle.js:153774 Module jupyter-leaflet, semver range 0.4.0 is not registered as a widget module
lab:1 Uncaught (in promise) Module jupyter-leaflet, semver range 0.4.0 is not registered as a widget module

What may I check ?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
SylvainCorlaycommented, May 20, 2018

@DavidBrochart actually what you are describing is the expected behavior. Lab extension fetch the js assets from npm.

To install the lab extension from source, you need to specify a directory instead.

1reaction
jasongroutcommented, Nov 9, 2017

Yes, we’ve combined the js packages and published the result. Now it is just jupyter labextension install jupyter-leaflet.

In the next revision, we may even be able to dispense with even that - and install the jlab plugin automatically when you install the python package.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ipyleaflet does not work in jupyter lab - "Error displaying ...
After having failed to get ipyleaflet to work from the released packages I decided to try installing from the current git repo master...
Read more >
jupyter-widgets/Lobby - Gitter
I am trying to centre-align an Image widget inside an Output widget, to basically act as a preloader whilst my calculation is running....
Read more >
jupyter-leaflet | Yarn - Package Manager
Jupyter Leaflet Widget. Interactive leaflet widget for the Jupyter notebook. The reference Python backend, ipyleaflet is available here, with examples.
Read more >
Can't see USGS WMS layers in ipyleaflet (leaflet.js for python)
Trying to use ipyleaflet (leaflet.js for python/jupyter widgets) to view a WMS layer representing 1m DEM availability.
Read more >
ipyleaflet - PyPI
ipyleaflet 0.17.2. pip install ipyleaflet. Copy PIP instructions. Latest version. Released: Oct 19, 2022. A Jupyter widget for dynamic Leaflet maps ...
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