pythonkerneljupyterjupyter-lab

Icons are not showing when using desired environment in JupyterLab


My jupyter lab is not showing any icons Here is how it's appearing enter image description here

This is when i run jupyter lab using these 2 commands

conda activate python_cvcourse
jupyter-lab

But if i use only

jupyter-lab

to launch the jupyter notebook (which does not create the environment i need) then here is how the notebook is showing enter image description here

You can see how all the icons are visible now, i don't understand what's the problem here i can work around this by remembering where the icons are but that is not very helpful, what should i do? I am on windows 10 and the jupyter versions i am using are

jupyter core     : 4.6.3
jupyter-notebook : 6.1.4
qtconsole        : 4.7.7
ipython          : 7.19.0
ipykernel        : 5.3.4
jupyter client   : 6.1.7
jupyter lab      : 2.2.6
nbconvert        : 6.0.7
ipywidgets       : 7.5.1
nbformat         : 5.0.8
traitlets        : 5.0.5

Solution

  • You have two conflicting versions of JupyterLab installed, one in the conda virtual environment and one outside of it. This leads to a conflict; the system responsible for icons was changed between versions. It will get fixed when you update to the same version (I highly recommend switching to 3.0, but you might be fine with just settling on 2.3).

    First, check what version you have installed outside of the environment

    conda deactivate
    # note down the version
    jupyter-lab --version
    # check if it was installed with pip (if it is in there with the version listed above)
    pip list
    # otherwise, it should be on the conda list instead:
    conda list
    

    And then compare it to the version inside of the environment:

    conda activate python_cvcourse
    jupyter-lab --version
    

    You will find that the version installed within you conda environment is older. If your installation that exists outside of the conda environment was installed with pip, I recommend uninstalling it:

    conda deactivate
    pip uninstall jupyterlab
    

    Otherwise, if it was installed with conda, I recommend to upgrade it:

    conda deactivate
    conda update -c conda-forge jupyterlab
    

    And finally you will need to upgrade the version inside of the conda environment:

    conda activate python_cvcourse
    conda update -c conda-forge jupyterlab