Jupyter lab vs. jupyter-lab

since ever I was able to start jupyter lab from the windows 10 CMD console using jupyter lab.
However, since a new installation of python and jupyter lab I am onyl able to open the program using jupyter-lab.
I am asking myelf if this can cause any problems or has any other ramifications going forward. Also is there a change to put it back to the command jupyter lab, wich is the command in the official documentation?
Thanks for any help in advance!

From the command line, try:

where jupyter
where jupyter-lab

If they have radically different prefixes, you may want to remove one or the other.

There may also be issues with your %PATH%:


See if your PATH (or PYTHONPATH) contain multiple python environments. This is also a recipe for disaster.

As a windows user, it may be worth looking at this screed and the associated contents about keeping Jupyter tools working “the hard way” in Windows with mamba.

1 Like

many thanks!
I tried the where commands and got the follwing:

C:\Users\user>where jupyter

C:\Users\user>where jupyter-lab

PATH is set as follows:
2022-12-24 14_32_42-Umgebungsvariable bearbeiten

Any hints?
Thanks in advance!

I can’t in good conscience recommend using the official python installer on Windows, much less multiple times on your machine or whatever you are seeing. The number of things that won’t work right is just very high.

As recommended in the post linked above:

  • remove all your existing python installations and references to them
    • with the GUI tool if provided
      • rd /s /q if you must
        • then manually clean up the environment variables, desktop shortcuts, registry entries, and wherever else stuff goes on windows
  • start with Mambaforge in a very short path (e.g. C:\mf) on your fastest drive
    • keep that base environment very small (e.g. just mamba)
  • build up from there with per-project environment.yml
    • even pip-only packages, can be managed in the pip: section
  • use mamba env update for everything
    • never pip install anything
      • other than your packages under development with pip install -e .
    • never mamba install anything
    • never use conda for much of anything
  • use per-environment Windows Terminal shortcuts to manage running in the right environment
1 Like

Hi Nicholas,
many thanks and happy holidays!

1 Like