Notebook projects often involve data files and scripts alongside the notebooks themselves. A local JupyterLab installation puts notebooks, a file browser, and a text editor in one browser workspace.
Project Jupyter publishes the jupyterlab package on the Python Package Index (PyPI). On Linux and macOS, a Python virtual environment keeps JupyterLab and its dependencies separate from your other Python projects.
JupyterLab shows the files in the directory where its server starts. Keep the access token in the startup URL private because it grants access to run code as your user account.
Steps to install JupyterLab:
Use a Bash or Zsh terminal in the folder you want JupyterLab to open, under your regular user account. The folder needs an unused .venv name, and your Python installation needs Python 3.10 or later with venv available.
- Create a Python virtual environment named .venv in the current folder.
$ python3 -m venv .venv
- Activate the virtual environment in the current shell.
$ source .venv/bin/activate
- Install the jupyterlab package from PyPI into the active environment.
$ pip install jupyterlab
When the installation finishes, pip lists jupyterlab with its installed version on the Successfully installed line.
- Start the local JupyterLab server from the active environment.
$ jupyter lab
The terminal prints a local browser URL when the server is ready. If no browser opens, paste the full URL printed in the terminal into your browser’s address bar and press Enter, then continue to the Launcher check. Closing that terminal stops the server.
- Confirm that your browser shows the Launcher tab at the host and port printed in step 4, such as localhost:8888.
The optional prompt about official Jupyter news leaves the Launcher visible.