Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for jupyterLab/jupyterHub... #845

Closed
lila opened this issue Aug 23, 2019 · 9 comments
Closed

support for jupyterLab/jupyterHub... #845

lila opened this issue Aug 23, 2019 · 9 comments

Comments

@lila
Copy link

lila commented Aug 23, 2019

I'm following the instructions on the readme site:

pip install nglview
jupyter-nbextension enable nglview --py --sys-prefix

installation works fine:

jovyan@jupyter-karan:~$    jupyter-nbextension enable nglview --py --sys-prefix
Enabling notebook extension nglview-js-widgets/extension...
      - Validating: OK

But when i try a simple nglview program, i get an error:
image

The extension seems to be for jupyter notebooks, but not jupyterlab notebooks. are there any plans to support jupyterlabs notebooks?

@hainm
Copy link
Collaborator

hainm commented Aug 24, 2019

hi @lila,
yes, nglview works in jupyterlab (most of the time) too. You have to install jupyter-labmanager and nglview-js-widgets. Please see the example here (with older nglview and older lab version), please adapt it and let me know if that works for you:
https://github.com/arose/nglview/blob/master/devtools/nglview-jupyterlab.sh

@hainm
Copy link
Collaborator

hainm commented Aug 24, 2019

I've tested and nglview 2.6.9 should work with lab 1.0.9

conda install jupyterlab -c conda-forge -y
jupyter-labextension install @jupyter-widgets/jupyterlab-manager
jupyter-labextension install  nglview-js-widgets@2.6.9
pip install nglview==2.6.9
jupyter nbextension enable --py nglview
jupyter nbextension enable --py widgetsnbextension

PS: The latest nglview 2.7.0 does not work yet with jupyterlab.

@lila
Copy link
Author

lila commented Aug 30, 2019

Thank you for the guidance. i'm still having the same issue.

I'm running jupyterLab on GCE using a pretty vanilla cloud deployment. its running in kubernetes. specific version of jupyterlab is 0.35.6

image

I ran the above commands and the log is below...

After running those commands, i restarted the kernel for the notebook, and ran the following notebook code:

image

it still produces the error. Any ideas?

  • k
jovyan@jupyter-karan:~$ jupyter-labextension install @jupyter-widgets/jupyterlab-manager
Node v11.14.0

> /srv/conda/envs/notebook/bin/npm pack @jupyter-widgets/jupyterlab-manager
npm notice
npm notice 📦  @jupyter-widgets/jupyterlab-manager@1.0.2
npm notice === Tarball Contents ===
npm notice 2.3kB  package.json
npm notice 1.5kB  LICENSE
npm notice 1.9kB  README.md
npm notice 277B   lib/index.d.ts
npm notice 380B   lib/index.js
npm notice 5.3kB  lib/manager.d.ts
npm notice 12.0kB lib/manager.js
npm notice 1.9kB  lib/output.d.ts
npm notice 5.2kB  lib/output.js
npm notice 830B   lib/plugin.d.ts
npm notice 6.7kB  lib/plugin.js
npm notice 956B   lib/renderer.d.ts
npm notice 3.3kB  lib/renderer.js
npm notice 216B   lib/semvercache.d.ts
npm notice 862B   lib/semvercache.js
npm notice 375B   schema/plugin.json
npm notice === Tarball Details ===
npm notice name:          @jupyter-widgets/jupyterlab-manager
npm notice version:       1.0.2
npm notice filename:      jupyter-widgets-jupyterlab-manager-1.0.2.tgz
npm notice package size:  11.3 kB
npm notice unpacked size: 44.0 kB
npm notice shasum:        8913784a181f7fb05d79943080549893ccb45ca1
npm notice integrity:     sha512-7c5jADfFFc16g[...]728vBtwbByyIw==
npm notice total files:   16
npm notice
jupyter-widgets-jupyterlab-manager-1.0.2.tgz
Incompatible extension:

"@jupyter-widgets/jupyterlab-manager@1.0.2" is not compatible with the current JupyterLab
Conflicting Dependencies:
JupyterLab              Extension        Package
>=0.19.1 <0.20.0        >=1.0.0 <2.0.0   @jupyterlab/application
>=2.2.1 <3.0.0          >=3.0.0 <4.0.0   @jupyterlab/coreutils
>=0.19.2 <0.20.0        >=1.0.0 <2.0.0   @jupyterlab/notebook
>=0.19.1 <0.20.0        >=1.0.0 <2.0.0   @jupyterlab/rendermime
>=3.2.1 <4.0.0          >=4.0.0 <5.0.0   @jupyterlab/services

Found compatible version: 0.38.1
> /srv/conda/envs/notebook/bin/npm pack @jupyter-widgets/jupyterlab-manager@0.38.1
npm notice
npm notice 📦  @jupyter-widgets/jupyterlab-manager@0.38.1
npm notice === Tarball Contents ===
npm notice 2.0kB package.json
npm notice 1.5kB LICENSE
npm notice 2.0kB README.md
npm notice 131B  lib/index.d.ts
npm notice 410B  lib/index.js
npm notice 2.5kB lib/manager.d.ts
npm notice 6.2kB lib/manager.js
npm notice 1.9kB lib/output.d.ts
npm notice 6.0kB lib/output.js
npm notice 1.1kB lib/plugin.d.ts
npm notice 3.6kB lib/plugin.js
npm notice 829B  lib/renderer.d.ts
npm notice 3.0kB lib/renderer.js
npm notice 216B  lib/semvercache.d.ts
npm notice 972B  lib/semvercache.js
npm notice === Tarball Details ===
npm notice name:          @jupyter-widgets/jupyterlab-manager
npm notice version:       0.38.1
npm notice filename:      jupyter-widgets-jupyterlab-manager-0.38.1.tgz
npm notice package size:  8.5 kB
npm notice unpacked size: 32.3 kB
npm notice shasum:        1b1e17c929065bd2a93057b2378562c10c3db6c0
npm notice integrity:     sha512-JutIwjs2jq6qW[...]Phr69YQ+qQZ/Q==
npm notice total files:   15
npm notice
jupyter-widgets-jupyterlab-manager-0.38.1.tgz
Node v11.14.0

> node /srv/conda/envs/notebook/lib/python3.6/site-packages/jupyterlab/staging/yarn.js install
yarn install v1.9.4
info No lockfile found.
[1/5] Validating package.json...
[2/5] Resolving packages...
warning @jupyterlab/application > @jupyterlab/coreutils > comment-json > json-parser@1.1.5: `json-parser` is deprecated. Please use `comment-json` instead
warning @jupyterlab/application > @jupyterlab/apputils > react > fbjs > core-js@1.2.7: core-js@<2.6.8 is nolonger maintained. Please, upgrade to core-js@3 or at least to actual version of core-js@2.
warning @jupyterlab/faq-extension@0.19.1: The JupyterLab FAQ extension is no longer developed and is removed from JupyterLab 1.0.
⠂ @jupyter-widgets/jupyterlab-manager@file:../extensions/jupyter-widgets-jupyterlab-manager-0.38.1.tgz(node:118) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
warning css-loader > cssnano > autoprefixer > browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning css-loader > cssnano > postcss-merge-rules > browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning css-loader > cssnano > postcss-merge-rules > caniuse-api > browserslist@1.7.7: Browserslist 2 couldfail on reading Browserslist >3.0 config used in other tools.
warning css-loader > cssnano > postcss-merge-rules > postcss-selector-parser > flatten@1.0.2: I wrote this module a very long time ago; you should use something else.
[3/5] Fetching packages...
info fsevents@1.2.9: The platform "linux" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
warning "@jupyterlab/vdom-extension > @nteract/transform-vdom@1.1.1" has incorrect peer dependency "react@^15.6.1".
warning "@jupyterlab/vega4-extension > vega-embed > vega-lite@2.7.0" has unmet peer dependency "vega@^3.0.0|| ^4.0.0".
warning "@jupyterlab/vega4-extension > vega-embed > vega-themes@2.4.0" has unmet peer dependency "vega@*".
[5/5] Building fresh packages...
success Saved lockfile.
warning Your current version of Yarn is out of date. The latest version is "1.17.3", while you're on "1.9.4".
Done in 68.36s.
> node /srv/conda/envs/notebook/lib/python3.6/site-packages/jupyterlab/staging/yarn.js run build
yarn run v1.9.4
$ webpack
Hash: fe02be0a72d63f54026a
Version: webpack 4.12.2
Time: 16626ms
Built at: 08/30/2019 3:29:33 PM
                                                             Asset       Size   Chunks             Chunk Names
                              674f50d287a8c48dc19ba404d20fe713.eot    162 KiB           [emitted]
                            af7ae505a9eed503f8b8e6982036873e.woff2   75.4 KiB           [emitted]
                              912ec66d7572ff821749319396470bde.svg    434 KiB           [emitted]
                             fee66e712a8a08eef5805a46892932ad.woff   95.7 KiB           [emitted]
                              b06871f281fee6b241d60582ae9369b9.ttf    162 KiB           [emitted]
                                      main.e4b3cb153ed8e16da5b5.js   55.4 KiB     main  [emitted]  main
                                         0.cc98107762fcc28532b3.js    4.5 KiB        0  [emitted]
                                      vega.91b98e783d16fd1b9e23.js  519 bytes     vega  [emitted]  vega
    vendors~@jupyter-widgets/controls~vega.8b1805ea3ceb0df473f6.js   22.6 KiB  vendors~@jupyter-widgets/controls~vega  [emitted]  vendors~@jupyter-widgets/controls~vega
                              vendors~main.ba4f5c003636e69b2d66.js   9.87 MiB                            vendors~main  [emitted]  vendors~main
                              vendors~vega.175a260e18ac70986591.js   2.82 MiB                            vendors~vega  [emitted]  vendors~vega
                                         1.055322dcf6c2bb19185f.js    891 KiB        1  [emitted]
         vendors~@jupyter-widgets/controls.77a393813a2a7ee01850.js    484 KiB       vendors~@jupyter-widgets/controls  [emitted]  vendors~@jupyter-widgets/controls
                                  main.e4b3cb153ed8e16da5b5.js.map   64.6 KiB     main  [emitted]  main
                                     0.cc98107762fcc28532b3.js.map   5.73 KiB        0  [emitted]
                                  vega.91b98e783d16fd1b9e23.js.map  251 bytes     vega  [emitted]  vega
vendors~@jupyter-widgets/controls~vega.8b1805ea3ceb0df473f6.js.map   15.6 KiB  vendors~@jupyter-widgets/controls~vega  [emitted]  vendors~@jupyter-widgets/controls~vega
                          vendors~main.ba4f5c003636e69b2d66.js.map   11.3 MiB                            vendors~main  [emitted]  vendors~main
                          vendors~vega.175a260e18ac70986591.js.map   2.33 MiB                            vendors~vega  [emitted]  vendors~vega
                                     1.055322dcf6c2bb19185f.js.map   1.05 MiB        1  [emitted]
     vendors~@jupyter-widgets/controls.77a393813a2a7ee01850.js.map    469 KiB       vendors~@jupyter-widgets/controls  [emitted]  vendors~@jupyter-widgets/controls
                                                        index.html   1.54 KiB           [emitted]
Entrypoint main = vendors~main.ba4f5c003636e69b2d66.js vendors~main.ba4f5c003636e69b2d66.js.map main.e4b3cb153ed8e16da5b5.js main.e4b3cb153ed8e16da5b5.js.map
 [0] multi whatwg-fetch ./build/index.out.js 40 bytes {main} [built]
 [ANye] ./build/index.out.js 36.8 KiB {main} [built]
 [yLpj] (webpack)/buildin/global.js 489 bytes {vendors~main} [built]
 [1] vertx (ignored) 15 bytes {main} [optional] [built]
 [RnhZ] ./node_modules/moment/locale sync ^\.\/.*$ 2.88 KiB {main} [optional] [built]
 [YuTi] (webpack)/buildin/module.js 497 bytes {vendors~main} [built]
 [eTbV] ./node_modules/codemirror/mode sync ^\.\/.*\.js$ 2.78 KiB {0} [built]
 [2] util (ignored) 15 bytes {main} [built]
 [4] buffer (ignored) 15 bytes {main} [optional] [built]
 [5] crypto (ignored) 15 bytes {main} [optional] [built]
 [6] readable-stream (ignored) 15 bytes {main} [built]
 [7] supports-color (ignored) 15 bytes {main} [built]
 [8] chalk (ignored) 15 bytes {main} [built]
[10] node-fetch (ignored) 15 bytes {vega} [built]
[11] fs (ignored) 15 bytes {vega} [built]
    + 2561 hidden modules

WARNING in @jupyter-widgets/base
  Multiple versions of @jupyter-widgets/base found:
    1.2.5 ./~/@jupyter-widgets/base from ./~/@jupyter-widgets/base/css/index.css
    2.0.1 ./~/@jupyter-widgets/controls/~/@jupyter-widgets/base from ./~/@jupyter-widgets/controls/~/@jupyter-widgets/base/lib/widget.js


WARNING in d3-array
  Multiple versions of d3-array found:
    1.2.4 ./~/d3-scale/~/d3-array from ./~/d3-scale/~/d3-array/src/index.js
    2.3.1 ./~/d3-array from ./~/d3-array/src/index.js


WARNING in entities
  Multiple versions of entities found:
    1.1.2 ./~/entities from ./~/htmlparser2/lib/Tokenizer.js
    2.0.0 ./~/dom-serializer/~/entities from ./~/dom-serializer/~/entities/lib/index.js


WARNING in react
  Multiple versions of react found:
    16.4.2 ./~/react from ./~/react/index.js
    16.9.0 ./~/dask-labextension/~/react from ./~/dask-labextension/lib/dashboard.js


WARNING in react-dom
  Multiple versions of react-dom found:
    16.4.2 ./~/react-dom from ./~/react-dom/index.js
    16.9.0 ./~/dask-labextension/~/react-dom from ./~/dask-labextension/~/react-dom/index.js


WARNING in safe-buffer
  Multiple versions of safe-buffer found:
    5.1.2 ./~/readable-stream/~/safe-buffer from ./~/readable-stream/lib/_stream_writable.js
    5.2.0 ./~/safe-buffer from ./~/string_decoder/lib/string_decoder.js

Check how you can resolve duplicate packages:
https://github.com/darrenscerri/duplicate-package-checker-webpack-plugin#resolving-duplicate-packages-in-your-bundle

Child html-webpack-plugin for "index.html":
     1 asset
    Entrypoint undefined = index.html
    [KTNU] ./node_modules/html-loader!./templates/partial.html 567 bytes {0} [built]
    [YuTi] (webpack)/buildin/module.js 497 bytes {0} [built]
    [aS2v] ./node_modules/html-webpack-plugin/lib/loader.js!./templates/template.html 1.22 KiB {0} [built]
    [yLpj] (webpack)/buildin/global.js 489 bytes {0} [built]
        + 1 hidden module
Done in 18.50s.
jovyan@jupyter-karan:~$ jupyter-labextension install  nglview-js-widgets@2.6.9
Node v11.14.0

> /srv/conda/envs/notebook/bin/npm pack nglview-js-widgets@2.6.9
npm notice
npm notice 📦  nglview-js-widgets@2.6.9
npm notice === Tarball Contents ===
npm notice 1.4kB  package.json
npm notice 171B   README.md
npm notice 3.8kB  dist/0de3b51742ed3ac61435875bccd8973b.png
npm notice 3.8kB  dist/208a290102a4ada58a04de354a1354d7.png
npm notice 3.8kB  dist/73a1fd052c9d84c0ee0bea3ee85892ed.png
npm notice 3.8kB  dist/971364734f3b603e5d363a2634898b42.png
npm notice 3.8kB  dist/a4c733ec4baef9ad3896d4e34a8a5448.png
npm notice 3.8kB  dist/bf27228a7d3957983584fa7698121ea1.png
npm notice 2.1MB  dist/index.js
npm notice 2.5MB  dist/index.js.map
npm notice 0      src/__init__.py
npm notice 42.7kB src/;
npm notice 698B   src/base.js
npm notice 2.0kB  src/color.js
npm notice 898B   src/css/dark.css
npm notice 20.8kB src/css/font-awesome.min.css
npm notice 990B   src/css/light.css
npm notice 8.8kB  src/css/main.css
npm notice 455B   src/embed.js
npm notice 537B   src/extension.js
npm notice 60.1kB src/gui.js
npm notice 476B   src/index.js
npm notice 411B   src/jupyterlab-plugin.js
npm notice 450B   src/labplugin.js
npm notice 5.8kB  src/lib/colorpicker.min.js
npm notice 3.2kB  src/lib/signals.min.js
npm notice 23.2kB src/lib/tether.min.js
npm notice 24.5kB src/ui/ui.extra.js
npm notice 21.6kB src/ui/ui.js
npm notice 8.0kB  src/ui/ui.ngl.js
npm notice 42.7kB src/widget_ngl.js
npm notice === Tarball Details ===
npm notice name:          nglview-js-widgets
npm notice version:       2.6.9
npm notice filename:      nglview-js-widgets-2.6.9.tgz
npm notice package size:  1.2 MB
npm notice unpacked size: 5.0 MB
npm notice shasum:        27a1734d5c66db40e5aa982c9c57ddce52b5db7e
npm notice integrity:     sha512-EatY1YKcoWoHO[...]uFKCrzmvwtGDQ==
npm notice total files:   31
npm notice
nglview-js-widgets-2.6.9.tgz
Node v11.14.0

> node /srv/conda/envs/notebook/lib/python3.6/site-packages/jupyterlab/staging/yarn.js install
yarn install v1.9.4
info No lockfile found.
[1/5] Validating package.json...
[2/5] Resolving packages...
warning @jupyterlab/application > @jupyterlab/coreutils > comment-json > json-parser@1.1.5: `json-parser` is deprecated. Please use `comment-json` instead
warning @jupyterlab/application > @jupyterlab/apputils > react > fbjs > core-js@1.2.7: core-js@<2.6.8 is nolonger maintained. Please, upgrade to core-js@3 or at least to actual version of core-js@2.
warning @jupyterlab/faq-extension@0.19.1: The JupyterLab FAQ extension is no longer developed and is removed from JupyterLab 1.0.
⠈ nglview-js-widgets@file:../extensions/nglview-js-widgets-2.6.9.tgz(node:205) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
warning css-loader > cssnano > autoprefixer > browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning css-loader > cssnano > postcss-merge-rules > browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning css-loader > cssnano > postcss-merge-rules > caniuse-api > browserslist@1.7.7: Browserslist 2 couldfail on reading Browserslist >3.0 config used in other tools.
warning css-loader > cssnano > postcss-merge-rules > postcss-selector-parser > flatten@1.0.2: I wrote this module a very long time ago; you should use something else.
[3/5] Fetching packages...
info fsevents@1.2.9: The platform "linux" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
warning "@jupyterlab/vdom-extension > @nteract/transform-vdom@1.1.1" has incorrect peer dependency "react@^15.6.1".
warning "@jupyterlab/vega4-extension > vega-embed > vega-lite@2.7.0" has unmet peer dependency "vega@^3.0.0|| ^4.0.0".
warning "@jupyterlab/vega4-extension > vega-embed > vega-themes@2.4.0" has unmet peer dependency "vega@*".
[5/5] Building fresh packages...
success Saved lockfile.
Done in 32.85s.
> node /srv/conda/envs/notebook/lib/python3.6/site-packages/jupyterlab/staging/yarn.js run build
yarn run v1.9.4
$ webpack
Hash: abb9728dd6b01a848d5c
Version: webpack 4.12.2
Time: 19981ms
Built at: 08/30/2019 3:31:01 PM
                                                             Asset       Size   Chunks             Chunk Names
                              674f50d287a8c48dc19ba404d20fe713.eot    162 KiB           [emitted]
                              a4c733ec4baef9ad3896d4e34a8a5448.png   3.67 KiB           [emitted]
                            af7ae505a9eed503f8b8e6982036873e.woff2   75.4 KiB           [emitted]
                              bf27228a7d3957983584fa7698121ea1.png   3.67 KiB           [emitted]
                              73a1fd052c9d84c0ee0bea3ee85892ed.png   3.67 KiB           [emitted]
                              208a290102a4ada58a04de354a1354d7.png   3.67 KiB           [emitted]
                              912ec66d7572ff821749319396470bde.svg    434 KiB           [emitted]
                             fee66e712a8a08eef5805a46892932ad.woff   95.7 KiB           [emitted]
                              0de3b51742ed3ac61435875bccd8973b.png   3.67 KiB           [emitted]
                              b06871f281fee6b241d60582ae9369b9.ttf    162 KiB           [emitted]
                              971364734f3b603e5d363a2634898b42.png   3.67 KiB           [emitted]
                                      main.0a126ef8d7b25466f5e8.js   56.4 KiB     main  [emitted]  main
                                         0.cc98107762fcc28532b3.js    4.5 KiB        0  [emitted]
                                      vega.91b98e783d16fd1b9e23.js  519 bytes     vega  [emitted]  vega
    vendors~@jupyter-widgets/controls~vega.8b1805ea3ceb0df473f6.js   22.6 KiB  vendors~@jupyter-widgets/controls~vega  [emitted]  vendors~@jupyter-widgets/controls~vega
                              vendors~main.6dfbbcd431f2460e119c.js   13.3 MiB                            vendors~main  [emitted]  vendors~main
                              vendors~vega.175a260e18ac70986591.js   2.82 MiB                            vendors~vega  [emitted]  vendors~vega
                                         1.055322dcf6c2bb19185f.js    891 KiB        1  [emitted]
         vendors~@jupyter-widgets/controls.6cabb32ad697af3ae185.js    454 KiB       vendors~@jupyter-widgets/controls  [emitted]  vendors~@jupyter-widgets/controls
                                  main.0a126ef8d7b25466f5e8.js.map   65.8 KiB     main  [emitted]  main
                                     0.cc98107762fcc28532b3.js.map   5.73 KiB        0  [emitted]
                                  vega.91b98e783d16fd1b9e23.js.map  251 bytes     vega  [emitted]  vega
vendors~@jupyter-widgets/controls~vega.8b1805ea3ceb0df473f6.js.map   15.6 KiB  vendors~@jupyter-widgets/controls~vega  [emitted]  vendors~@jupyter-widgets/controls~vega
                          vendors~main.6dfbbcd431f2460e119c.js.map   15.5 MiB                            vendors~main  [emitted]  vendors~main
                          vendors~vega.175a260e18ac70986591.js.map   2.33 MiB                            vendors~vega  [emitted]  vendors~vega
                                     1.055322dcf6c2bb19185f.js.map   1.05 MiB        1  [emitted]
     vendors~@jupyter-widgets/controls.6cabb32ad697af3ae185.js.map    434 KiB       vendors~@jupyter-widgets/controls  [emitted]  vendors~@jupyter-widgets/controls
                                                        index.html   1.54 KiB           [emitted]
Entrypoint main = vendors~main.6dfbbcd431f2460e119c.js vendors~main.6dfbbcd431f2460e119c.js.map main.0a126ef8d7b25466f5e8.js main.0a126ef8d7b25466f5e8.js.map
 [0] multi whatwg-fetch ./build/index.out.js 40 bytes {main} [built]
 [ANye] ./build/index.out.js 37.7 KiB {main} [built]
 [yLpj] (webpack)/buildin/global.js 489 bytes {vendors~main} [built]
 [1] vertx (ignored) 15 bytes {main} [optional] [built]
 [RnhZ] ./node_modules/moment/locale sync ^\.\/.*$ 2.88 KiB {main} [optional] [built]
 [YuTi] (webpack)/buildin/module.js 497 bytes {vendors~main} [built]
 [eTbV] ./node_modules/codemirror/mode sync ^\.\/.*\.js$ 2.78 KiB {0} [built]
 [2] util (ignored) 15 bytes {main} [built]
 [4] buffer (ignored) 15 bytes {main} [optional] [built]
 [5] crypto (ignored) 15 bytes {main} [optional] [built]
 [6] readable-stream (ignored) 15 bytes {main} [built]
 [7] supports-color (ignored) 15 bytes {main} [built]
 [8] chalk (ignored) 15 bytes {main} [built]
[10] node-fetch (ignored) 15 bytes {vega} [built]
[11] fs (ignored) 15 bytes {vega} [built]
    + 2640 hidden modules

WARNING in @jupyter-widgets/base
  Multiple versions of @jupyter-widgets/base found:
    1.2.5 ./~/@jupyter-widgets/base from ./~/@jupyter-widgets/base/css/index.css
    2.0.1 ./~/@jupyter-widgets/controls/~/@jupyter-widgets/base from ./~/@jupyter-widgets/controls/~/@jupyter-widgets/base/lib/widget.js


WARNING in d3-array
  Multiple versions of d3-array found:
    1.2.4 ./~/d3-scale/~/d3-array from ./~/d3-scale/~/d3-array/src/index.js
    2.3.1 ./~/d3-array from ./~/d3-array/src/index.js


WARNING in entities
  Multiple versions of entities found:
    1.1.2 ./~/entities from ./~/htmlparser2/lib/Tokenizer.js
    2.0.0 ./~/dom-serializer/~/entities from ./~/dom-serializer/~/entities/lib/index.js


WARNING in react
  Multiple versions of react found:
    16.4.2 ./~/react from ./~/react/index.js
    16.9.0 ./~/dask-labextension/~/react from ./~/dask-labextension/lib/dashboard.js


WARNING in react-dom
  Multiple versions of react-dom found:
    16.4.2 ./~/react-dom from ./~/react-dom/index.js
    16.9.0 ./~/dask-labextension/~/react-dom from ./~/dask-labextension/~/react-dom/index.js


WARNING in safe-buffer
  Multiple versions of safe-buffer found:
    5.1.2 ./~/readable-stream/~/safe-buffer from ./~/readable-stream/lib/_stream_readable.js
    5.2.0 ./~/safe-buffer from ./~/string_decoder/lib/string_decoder.js

Check how you can resolve duplicate packages:
https://github.com/darrenscerri/duplicate-package-checker-webpack-plugin#resolving-duplicate-packages-in-your-bundle

Child html-webpack-plugin for "index.html":
     1 asset
    Entrypoint undefined = index.html
    [KTNU] ./node_modules/html-loader!./templates/partial.html 567 bytes {0} [built]
    [YuTi] (webpack)/buildin/module.js 497 bytes {0} [built]
    [aS2v] ./node_modules/html-webpack-plugin/lib/loader.js!./templates/template.html 1.22 KiB {0} [built]
    [yLpj] (webpack)/buildin/global.js 489 bytes {0} [built]
        + 1 hidden module
Done in 21.75s.
jovyan@jupyter-karan:~$ pip install nglview==2.6.9
Collecting nglview==2.6.9
  Downloading https://files.pythonhosted.org/packages/8f/6e/2ce61d898095923a09318f6a84f53a551bf0f1b5573b51984bd86812f592/nglview-2.6.9.tar.gz (4.6MB)
     |████████████████████████████████| 4.6MB 3.4MB/s
Requirement already satisfied: ipywidgets>=7 in /srv/conda/envs/notebook/lib/python3.6/site-packages (from nglview==2.6.9) (7.4.2)
Requirement already satisfied: numpy in /srv/conda/envs/notebook/lib/python3.6/site-packages (from nglview==2.6.9) (1.16.4)
Requirement already satisfied: nbformat>=4.2.0 in /srv/conda/envs/notebook/lib/python3.6/site-packages (from ipywidgets>=7->nglview==2.6.9) (4.4.0)
Requirement already satisfied: widgetsnbextension~=3.4.0 in /srv/conda/envs/notebook/lib/python3.6/site-packages (from ipywidgets>=7->nglview==2.6.9) (3.4.2)
Requirement already satisfied: ipython>=4.0.0; python_version >= "3.3" in /srv/conda/envs/notebook/lib/python3.6/site-packages (from ipywidgets>=7->nglview==2.6.9) (7.5.0)
Requirement already satisfied: traitlets>=4.3.1 in /srv/conda/envs/notebook/lib/python3.6/site-packages (from ipywidgets>=7->nglview==2.6.9) (4.3.2)
Requirement already satisfied: ipykernel>=4.5.1 in /srv/conda/envs/notebook/lib/python3.6/site-packages (from ipywidgets>=7->nglview==2.6.9) (5.1.0)
Requirement already satisfied: ipython_genutils in /srv/conda/envs/notebook/lib/python3.6/site-packages (from nbformat>=4.2.0->ipywidgets>=7->nglview==2.6.9) (0.2.0)
Requirement already satisfied: jsonschema!=2.5.0,>=2.4 in /srv/conda/envs/notebook/lib/python3.6/site-packages (from nbformat>=4.2.0->ipywidgets>=7->nglview==2.6.9) (3.0.1)
Requirement already satisfied: jupyter_core in /srv/conda/envs/notebook/lib/python3.6/site-packages (from nbformat>=4.2.0->ipywidgets>=7->nglview==2.6.9) (4.4.0)
Requirement already satisfied: notebook>=4.4.1 in /srv/conda/envs/notebook/lib/python3.6/site-packages (from widgetsnbextension~=3.4.0->ipywidgets>=7->nglview==2.6.9) (5.7.8)
Requirement already satisfied: backcall in /srv/conda/envs/notebook/lib/python3.6/site-packages (from ipython>=4.0.0; python_version >= "3.3"->ipywidgets>=7->nglview==2.6.9) (0.1.0)
Requirement already satisfied: pexpect; sys_platform != "win32" in /srv/conda/envs/notebook/lib/python3.6/site-packages (from ipython>=4.0.0; python_version >= "3.3"->ipywidgets>=7->nglview==2.6.9) (4.7.0)
Requirement already satisfied: decorator in /srv/conda/envs/notebook/lib/python3.6/site-packages (from ipython>=4.0.0; python_version >= "3.3"->ipywidgets>=7->nglview==2.6.9) (4.4.0)
Requirement already satisfied: jedi>=0.10 in /srv/conda/envs/notebook/lib/python3.6/site-packages (from ipython>=4.0.0; python_version >= "3.3"->ipywidgets>=7->nglview==2.6.9) (0.13.3)
Requirement already satisfied: pygments in /srv/conda/envs/notebook/lib/python3.6/site-packages (from ipython>=4.0.0; python_version >= "3.3"->ipywidgets>=7->nglview==2.6.9) (2.3.1)
Requirement already satisfied: prompt-toolkit<2.1.0,>=2.0.0 in /srv/conda/envs/notebook/lib/python3.6/site-packages (from ipython>=4.0.0; python_version >= "3.3"->ipywidgets>=7->nglview==2.6.9) (2.0.9)
Requirement already satisfied: setuptools>=18.5 in /srv/conda/envs/notebook/lib/python3.6/site-packages (from ipython>=4.0.0; python_version >= "3.3"->ipywidgets>=7->nglview==2.6.9) (41.0.1)
Requirement already satisfied: pickleshare in /srv/conda/envs/notebook/lib/python3.6/site-packages (from ipython>=4.0.0; python_version >= "3.3"->ipywidgets>=7->nglview==2.6.9) (0.7.5)
Requirement already satisfied: six in /srv/conda/envs/notebook/lib/python3.6/site-packages (from traitlets>=4.3.1->ipywidgets>=7->nglview==2.6.9) (1.12.0)
Requirement already satisfied: jupyter-client in /srv/conda/envs/notebook/lib/python3.6/site-packages (fromipykernel>=4.5.1->ipywidgets>=7->nglview==2.6.9) (5.2.4)
Requirement already satisfied: tornado>=4.2 in /srv/conda/envs/notebook/lib/python3.6/site-packages (from ipykernel>=4.5.1->ipywidgets>=7->nglview==2.6.9) (5.1.1)
Requirement already satisfied: attrs>=17.4.0 in /srv/conda/envs/notebook/lib/python3.6/site-packages (from jsonschema!=2.5.0,>=2.4->nbformat>=4.2.0->ipywidgets>=7->nglview==2.6.9) (19.1.0)
Requirement already satisfied: pyrsistent>=0.14.0 in /srv/conda/envs/notebook/lib/python3.6/site-packages (from jsonschema!=2.5.0,>=2.4->nbformat>=4.2.0->ipywidgets>=7->nglview==2.6.9) (0.15.1)
Requirement already satisfied: nbconvert in /srv/conda/envs/notebook/lib/python3.6/site-packages (from notebook>=4.4.1->widgetsnbextension~=3.4.0->ipywidgets>=7->nglview==2.6.9) (5.4.1)
Requirement already satisfied: terminado>=0.8.1 in /srv/conda/envs/notebook/lib/python3.6/site-packages (from notebook>=4.4.1->widgetsnbextension~=3.4.0->ipywidgets>=7->nglview==2.6.9) (0.8.2)
Requirement already satisfied: pyzmq>=17 in /srv/conda/envs/notebook/lib/python3.6/site-packages (from notebook>=4.4.1->widgetsnbextension~=3.4.0->ipywidgets>=7->nglview==2.6.9) (18.0.1)
Requirement already satisfied: jinja2 in /srv/conda/envs/notebook/lib/python3.6/site-packages (from notebook>=4.4.1->widgetsnbextension~=3.4.0->ipywidgets>=7->nglview==2.6.9) (2.10.1)
Requirement already satisfied: Send2Trash in /srv/conda/envs/notebook/lib/python3.6/site-packages (from notebook>=4.4.1->widgetsnbextension~=3.4.0->ipywidgets>=7->nglview==2.6.9) (1.5.0)
Requirement already satisfied: prometheus-client in /srv/conda/envs/notebook/lib/python3.6/site-packages (from notebook>=4.4.1->widgetsnbextension~=3.4.0->ipywidgets>=7->nglview==2.6.9) (0.6.0)
Requirement already satisfied: ptyprocess>=0.5 in /srv/conda/envs/notebook/lib/python3.6/site-packages (from pexpect; sys_platform != "win32"->ipython>=4.0.0; python_version >= "3.3"->ipywidgets>=7->nglview==2.6.9) (0.6.0)
Requirement already satisfied: parso>=0.3.0 in /srv/conda/envs/notebook/lib/python3.6/site-packages (from jedi>=0.10->ipython>=4.0.0; python_version >= "3.3"->ipywidgets>=7->nglview==2.6.9) (0.4.0)
Requirement already satisfied: wcwidth in /srv/conda/envs/notebook/lib/python3.6/site-packages (from prompt-toolkit<2.1.0,>=2.0.0->ipython>=4.0.0; python_version >= "3.3"->ipywidgets>=7->nglview==2.6.9) (0.1.7)
Requirement already satisfied: python-dateutil>=2.1 in /srv/conda/envs/notebook/lib/python3.6/site-packages(from jupyter-client->ipykernel>=4.5.1->ipywidgets>=7->nglview==2.6.9) (2.8.0)
Requirement already satisfied: mistune>=0.8.1 in /srv/conda/envs/notebook/lib/python3.6/site-packages (fromnbconvert->notebook>=4.4.1->widgetsnbextension~=3.4.0->ipywidgets>=7->nglview==2.6.9) (0.8.4)
Requirement already satisfied: entrypoints>=0.2.2 in /srv/conda/envs/notebook/lib/python3.6/site-packages (from nbconvert->notebook>=4.4.1->widgetsnbextension~=3.4.0->ipywidgets>=7->nglview==2.6.9) (0.3)
Requirement already satisfied: bleach in /srv/conda/envs/notebook/lib/python3.6/site-packages (from nbconvert->notebook>=4.4.1->widgetsnbextension~=3.4.0->ipywidgets>=7->nglview==2.6.9) (3.1.0)
Requirement already satisfied: pandocfilters>=1.4.1 in /srv/conda/envs/notebook/lib/python3.6/site-packages(from nbconvert->notebook>=4.4.1->widgetsnbextension~=3.4.0->ipywidgets>=7->nglview==2.6.9) (1.4.2)
Requirement already satisfied: testpath in /srv/conda/envs/notebook/lib/python3.6/site-packages (from nbconvert->notebook>=4.4.1->widgetsnbextension~=3.4.0->ipywidgets>=7->nglview==2.6.9) (0.4.2)
Requirement already satisfied: defusedxml in /srv/conda/envs/notebook/lib/python3.6/site-packages (from nbconvert->notebook>=4.4.1->widgetsnbextension~=3.4.0->ipywidgets>=7->nglview==2.6.9) (0.5.0)
Requirement already satisfied: MarkupSafe>=0.23 in /srv/conda/envs/notebook/lib/python3.6/site-packages (from jinja2->notebook>=4.4.1->widgetsnbextension~=3.4.0->ipywidgets>=7->nglview==2.6.9) (1.1.1)
Requirement already satisfied: webencodings in /srv/conda/envs/notebook/lib/python3.6/site-packages (from bleach->nbconvert->notebook>=4.4.1->widgetsnbextension~=3.4.0->ipywidgets>=7->nglview==2.6.9) (0.5.1)
Building wheels for collected packages: nglview
  Building wheel for nglview (setup.py) ... done
  Stored in directory: /home/jovyan/.cache/pip/wheels/eb/c8/91/02bbcc550927045b4f9eb4840b570c2c5cee9bca4b3ad6ab9b
Successfully built nglview
Installing collected packages: nglview
Successfully installed nglview-2.6.9
jovyan@jupyter-karan:~$ jupyter nbextension enable --py nglview
Enabling notebook extension nglview-js-widgets/extension...
      - Validating: OK
jovyan@jupyter-karan:~$ jupyter nbextension enable --py widgetsnbextension
Enabling notebook extension jupyter-js-widgets/extension...
      - Validating: OK
jovyan@jupyter-karan:~$ ^C
jovyan@jupyter-karan:~$

@lila
Copy link
Author

lila commented Aug 30, 2019

I do notice that it installed a older version of jupyterlab manager, other than that i don't see any errors in the output..

"@jupyter-widgets/jupyterlab-manager@1.0.2" is not compatible with the current JupyterLab
[snip]
Found compatible version: 0.38.1
> /srv/conda/envs/notebook/bin/npm pack @jupyter-widgets/jupyterlab-manager@0.38.1

@hainm
Copy link
Collaborator

hainm commented Aug 30, 2019

I am sorry I don't really know why since I only test my system in my macos or linux machine.
Here is the mybinder version of nglview with jupyter-lab: https://mybinder.org/v2/gh/hainm/nglview-binder/master?urlpath=lab/tree/nglview/notebooks

and here is the recipe:
https://github.com/hainm/nglview-binder/tree/master/binder

@hainm
Copy link
Collaborator

hainm commented Aug 30, 2019

@lila jupyterlab 0.35.6 is quite old. This project is evolving super quickly so nglview needs to evolve too. Please try with latest lab and nglview like the recipe I posted above.

@hainm
Copy link
Collaborator

hainm commented Aug 30, 2019

In short, please try again with

- jupyterlab=1.0.9
- nglview=2.7

@lila
Copy link
Author

lila commented Aug 30, 2019

ok, thank you @hainm ... i will upgrade and try again...

@lila
Copy link
Author

lila commented Sep 5, 2019

awesome! thank you, confirmed ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants