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.

jupyterlab-manager-0.35 installation hungs with jupyterlab 0.32.1

See original GitHub issue

I have: OSX 10.13.4 python 3.6.5 jupyterlab 0.32.1

To start form a clean sheet I do

jupyter labextension uninstall @jupyter-widgets/jupyterlab-manager
jupyter lab clean
jupyter lab build

Then I try to install again jupyterlab-manager:

$ jupyter labextension install @jupyter-widgets/jupyterlab-manager
> /usr/local/bin/npm pack @jupyter-widgets/jupyterlab-manager
jupyter-widgets-jupyterlab-manager-0.35.0.tgz
> node /Users/e/anaconda3/lib/python3.6/site-packages/jupyterlab/staging/yarn.js install
yarn install v1.5.1
(node:11382) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
info No lockfile found.
[1/4] 🔍  Resolving packages...
⢀ @jupyter-widgets/jupyterlab-manager@file:../extensions/jupyter-widgets-jupyterlab-manager-0.35.0.tgz

At this stage the installation keeps on this line for minutes. Usually after > 5 minutes I kill the install.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:29
  • Comments:27 (8 by maintainers)

github_iconTop GitHub Comments

69reactions
yozletcommented, Jun 13, 2018

Yet another way to get this working, but without installing a different node version (and without waiting for a JupyterLab build with jupyterlab/jupyterlab#4632). In my setup, I have everything in a virtualenv.

  1. Upgrade your system yarn to 1.7.0 or higher: npm install -g yarn It will probably do something like this:
bash-3.2$ npm install -g yarn
/usr/local/bin/yarn -> /usr/local/lib/node_modules/yarn/bin/yarn.js
/usr/local/bin/yarnpkg -> /usr/local/lib/node_modules/yarn/bin/yarn.js
  1. Hang onto the complete path to yarn.js that npm reported. (It might be a different path on your system to what I’ve pasted above.)
  2. Find where the jupyterlab Python module is installed; in my virtualenv, it’s in lib/python3.6/site-packages/jupyterlab/
  3. Inside the module, edit staging/.yarnrc, which will look like:
yarn-path "./yarn.js"

Change the value to the complete path to yarn.js that you grabbed in step 2.

  1. jupyter labextension install should now work!
23reactions
jwkvamcommented, May 2, 2018

Seems to be a node 10 issue. I’m on macos too and I use homebrew to manage node. I think last week it upgraded me to node 10. I tried updating my jupyterlab today and it was having trouble with these packages. I downgraded to node 8 by

brew install node@8

and everything seems to be working fine again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

JupyterLab - PyPI
When using a version of Jupyter Notebook earlier than 5.3, the following command must be run after installation to enable the JupyterLab server...
Read more >
Installation — JupyterLab 3.6.0b0 documentation
If installing using pip install --user , you must add the user-level bin directory to your PATH environment variable in order to launch...
Read more >
Release notes — Anaconda documentation
This installer uses python-3.9. This is the first release that provides a python-3.10 variant for anaconda metapackages. This is the last release that...
Read more >
@jupyter-widgets/jupyterlab-manager NPM | npm.io
A JupyterLab 3.0 extension for Jupyter/IPython widgets. Installation. To enable ipywidgets support in JupyterLab 3.x: pip install jupyterlab_widgets. Version ...
Read more >
plotlywidget | Yarn - Package Manager
Install with jupyter labextension install plotlywidget in JupyterLab, otherwise just install Plotly.py and it will automatically work in Classic Notebooks.
Read more >

github_iconTop Related Medium Post

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