How to update jupyterlab using conda or pip

AnacondaJupyterJupyter Lab

Anaconda Problem Overview


How do you update jupyterlab using conda or pip?

I understand that conda update jupyter updates jupyter notebook (I have Anaconda), but I'm not sure this takes care of jupyterlab as well.

Anaconda Solutions


Solution 1 - Anaconda

conda update jupyter will not automatically update jupyterlab. You have to explicitly request an update of jupyterlab:

conda update jupyterlab

Solution 2 - Anaconda

You may need to specify conda-forge:

conda update -c conda-forge jupyterlab

EDIT: Trying to update to 3.0, conda update jupyterlab did not work for me (result of jupyter lab --version still was 2.x) and when I tried to specify conda-forge or jupyterlab=3.0 the command hung for too long. I gave up after almost an hour of solving environment. The following worked for me from the Anaconda shell:

conda uninstall jupyterlab
conda install -c conda-forge jupyterlab=3

Solution 3 - Anaconda

I was getting frustrated by trying to update Jupyterlab on Anaconda and failing. Eventually I realized that this line of code works for me:

    conda update --all

enter image description here

Solution 4 - Anaconda

If you prefer using pip:

pip install --upgrade jupyterlab

Or if you'd like a specific version:

pip install jupyterlab==1.2.4

Depending on your rights, you might also need to add a --user in there:

pip install jupyterlab==1.2.4 --user

Solution 5 - Anaconda

After a lot of back-and-forth with the above methods with conda, none of which worked for me to upgrade nodejs to > v14.x - below is the solution that worked for me, thanks to the link below:

  1. conda search nodejs # Search nodejs version under conda.
  2. conda install nodejs=14.7.0 -c conda-forge

https://www.programmersought.com/article/39027053707/

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionbeckoView Question on Stackoverflow
Solution 1 - AnacondacelView Answer on Stackoverflow
Solution 2 - AnacondaelzView Answer on Stackoverflow
Solution 3 - AnacondaJustinView Answer on Stackoverflow
Solution 4 - AnacondavestlandView Answer on Stackoverflow
Solution 5 - AnacondaSolitonView Answer on Stackoverflow