How to update my JupyterLab version to the latest version?

I ran “Anaconda Navigator” from the start menu of my Windows 10 OS.

From the “Home” tab I chose the “example” environment, which I had previously created from the Anaconda prompt.

The list of applications included “JupyterLab”.

The version shown for “JupyterLab” was 3.6.3.

According to the PyPI repository, the current version of JupyterLab is 4.0.5.

However, when I click the cogwheel on the JupyterLab application square, the option “Update application” is disabled.

I tried to update JupyterLab by executing the following command from the CMD.exe Prompt application: “conda update jupyterlab”. This didn’t help: the JupyterLab version remained 3.6.3 as before.

I tried to update JupyterLab by executing the following command from the CMD.exe Prompt application: “pip install jupyterlab”. This too didn’t help: the JupyterLab version remained 3.6.3 as before.

How can I update my JupyterLab to the latest version?

Hello,

The latest version of JupyterLab on the Anaconda Defaults repository is 3.6.3. That’s the reason why you aren’t further able to update it is the latest version it has.

I see. Thanks. Based on your observation I executed “conda update -c conda-forge jupyterlab”, and then the Navigator square for JupyterLab allowed me to update the application to 4.0.5.

2 Likes

I faced the same issue while trying to update JupyterLab in my Anaconda environment. No matter how many times I ran conda update jupyterlab or pip install --upgrade jupyterlab, it just wouldn’t update past version 3.6.3.

After some trial and error, I found that the best way to upgrade JupyterLab to the latest version is:

  1. Check your conda version: Make sure your conda is updated first by running:
    conda update -n base -c defaults conda
    
  2. Create a new environment (recommended): Sometimes, updating within an existing environment causes conflicts. Try creating a fresh one:
    conda create -n jupyterlab_env python=3.10
    conda activate jupyterlab_env
    
    Then install JupyterLab:
    conda install -c conda-forge jupyterlab
    
  3. Alternative method with pip: If you want to avoid Anaconda issues, uninstall JupyterLab completely and reinstall via pip:
    pip uninstall jupyterlab
    pip install jupyterlab
    

This worked perfectly for me! Hope it helps others facing the same issue. Also, if you’re setting up JupyterLab on Ubuntu, this guide is invaluable: install jupyterlab on ubuntu.