Install JupyterLab or Notebook
jupyter
Updated August 29, 2026
Create or activate an environment, then install Jupyter into that environment. For a general Python environment:
python -m venv .venv
source .venv/bin/activate # macOS/Linux
python -m pip install --upgrade pip
python -m pip install jupyterlab
python -m jupyter lab
Use the equivalent activation command on Windows. Conda users can install JupyterLab from the channel they use and then run jupyter lab after activating the environment.
The python -m pip form matters: it installs into the interpreter you will use to start Jupyter. Verify it with python -m jupyter --version. If a notebook needs a different Python project environment, install and register a kernel in that environment rather than relying on a global installation. Keep the environment definition or dependency list with the project, and never put API keys in a notebook that will be shared.
Sources
related.
Ruslan Osipov
About the author