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 Setup is unclear

See original GitHub issue

Problem

Hi! I had a hard time to understand what is actually necessary to install when using ipywidgets in JupyterLab. I tried following the documentation here: https://ipywidgets.readthedocs.io/en/latest/user_install.html

And eventually I was successful by putting ipywidgets and nodejs into my requirements.txt file and then enabling then installing the lab extension jupyter labextension install @jupyter-widgets/jupyterlab-manager.

However, it was unclear which things apply to my setup. The first line in “Installing the JupyterLab Extension” says:

To install the JupyterLab extension you also need to run the command below in a terminal which requires that you have nodejs installed.

“Also”, also to what? The headlines are all on the same level, so the JupyterLab instructions are not a subsection of something that was already installed.

Some of my thoughts:

  • The instruction for Jupyterlab uses conda, but the conda section above says in enables the extension already.
  • Do i need the widgetsnbextension too?
  • Do I actually have to install ipywidgets if I install the extension?

I was additionally confused by this Binder example that I eventually discarded: https://github.com/binder-examples/jupyter-extension/

Proposed Solution

I would suggest to either restructure to add some hierarchy to see what builds on top of what. or make the section self contained such that you only need to follow that are there.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
keckeltcommented, Sep 28, 2020

okay,thanks. I’ll then close this again. Looking forward to v3 🙂

1reaction
martinRenoucommented, Sep 28, 2020

I understand the instructions can be confusing, we get lots of reports from people who could not follow the installations steps properly and en up with broken JupyterLab installation. But again, this should be simplified with the new extension system in JupyterLab 3.

Soon, you’ll only need to run pip install ipywidgets or conda install -c conda-forge ipywidgets.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Missing Node.js error message unclear · Issue #8459 - GitHub
With node and no npm, JupyterLab still fails to install the extension and you don't get an error message. Expected behavior. Amend the...
Read more >
Jupyter command `jupyter-lab` not found - Stack Overflow
I had same issue. I solved it running pip install jupyterlab in prompt with admin privilegies.
Read more >
Conda taking forever to install Jupyter lab - Julia Discourse
Is it normal that installing jupyterlab from scratch through conda is a 4 hour process that aborts a couple times before it completes?...
Read more >
Installing extension at user level - Jupyter Community Forum
When using the command line, you can target the --level of the config: user , system , or sys-prefix (default). However it is...
Read more >
How to set up Anaconda and Jupyter Notebook the right way
Jupyter Notebook can easily be installed using conda. Our plan is to only install it in the base environment, and then just switch...
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