Open Jupyter from a terminal

jupyter

Updated August 29, 2026

Activate the Python environment that contains Jupyter, then start the interface from a terminal:

source .venv/bin/activate       # macOS/Linux, if applicable
python -m jupyter lab

Use python -m jupyter notebook when you specifically want the classic Notebook interface. On Windows, activate the environment in PowerShell or Command Prompt and use py -m jupyter lab or python -m jupyter lab.

Jupyter prints a local URL containing a token. Copy it into a browser if one does not open automatically. To choose a folder for the session:

python -m jupyter lab --notebook-dir=/path/to/project

--no-browser prevents an automatic browser launch. Stop the server with Ctrl-C; closing the tab does not stop it. If the module is missing, install Jupyter into the active interpreter with python -m pip install jupyterlab rather than using a pip command that may belong to another Python installation.

Sources

related.

Ruslan Osipov

Ruslan Osipov

About the author