Search code examples
anacondajupyter-lab

How do I update to jupyterlab 4 using the Anaconda distribution?


I installed the most recent Anaconda distribution of Python that I downloaded here: https://repo.anaconda.com/archive/Anaconda3-2023.03-1-Linux-x86_64.sh.

I created a new environment named af that is a clone of the base environment: conda create --name af --clone base

I activated this new environment: conda activate af

The JupyterLab version in base and af is 3.5.3, and I want to update it to 4.

(af) richard@ms7c90:~$ jupyter --version
Selected Jupyter core packages...
IPython          : 8.10.0
ipykernel        : 6.19.2
ipywidgets       : 7.6.5
jupyter_client   : 7.3.4
jupyter_core     : 5.2.0
jupyter_server   : 1.23.4
jupyterlab       : 3.5.3
nbclient         : 0.5.13
nbconvert        : 6.5.4
nbformat         : 5.7.0
notebook         : 6.5.2
qtconsole        : 5.4.0
traitlets        : 5.7.1

The JupyterLab 4 announcement says I should run: conda install -c conda-forge jupyterlab. But this only gets me to 3.6.4. How do I update JupyterLab to 4?


Solution

  • I could update after uninstalling the previous version with

      pip install -U jupyterlab
    

    followed by

      pip install jupyterlab