ipyleaflet: error trying ipyleaflet-0.4.0
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 ?
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 16 (16 by maintainers)
@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.
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.