- Go to your project folder
cd my-projectUse your own folder name.
- Create a virtual environment
python3 -m venv .venvSkip this if your project already has one.
- Switch it on
source .venv/bin/activateYour prompt now starts with (.venv).
- Install JupyterLab
pip install jupyterlab - Start JupyterLab
jupyter labYour browser opens JupyterLab. If it doesn't, copy the link that starts with http://localhost:8888 from the terminal. To open a new notebook, choose File > New > Notebook and pick the Python 3 kernel. Notebooks save as .ipynb files in your project folder. Press Ctrl + C in the terminal to stop the server when you're done.
- Prefer the classic notebook view? (optional)
pip install notebook && jupyter notebookThis opens the older, simpler Jupyter Notebook screen instead of JupyterLab. Press Ctrl + C to stop it.
Check it worked
- Check Jupyter is installed in the environment
jupyter --version
Undo it
- Remove Jupyter
pip uninstall -y jupyterlab notebookYour notebook files stay in your folder.
- Switch the environment off
deactivate
- Go to your project folder
cd my-projectUse your own folder name.
- Create a virtual environment
python3 -m venv .venvSkip this if your project already has one. On Debian and Ubuntu you may need sudo apt install python3-venv first.
- Switch it on
source .venv/bin/activateYour prompt now starts with (.venv).
- Install JupyterLab
pip install jupyterlab - Start JupyterLab
jupyter labYour browser opens JupyterLab. If it doesn't, copy the link that starts with http://localhost:8888 from the terminal. To open a new notebook, choose File > New > Notebook and pick the Python 3 kernel. Notebooks save as .ipynb files in your project folder. Press Ctrl + C in the terminal to stop the server when you're done.
- Prefer the classic notebook view? (optional)
pip install notebook && jupyter notebookThis opens the older, simpler Jupyter Notebook screen instead of JupyterLab. Press Ctrl + C to stop it.
Check it worked
- Check Jupyter is installed in the environment
jupyter --version
Undo it
- Remove Jupyter
pip uninstall -y jupyterlab notebookYour notebook files stay in your folder.
- Switch the environment off
deactivate
- Go to your project folder
cd my-projectUse your own folder name.
- Create a virtual environment
py -m venv .venvSkip this if your project already has one.
- Switch it on
.venv\Scripts\Activate.ps1Your prompt now starts with (.venv). If PowerShell says scripts are disabled, see the virtual environment page.
- Install JupyterLab
pip install jupyterlab - Start JupyterLab
jupyter labYour browser opens JupyterLab. If it doesn't, copy the link that starts with http://localhost:8888 from the terminal. To open a new notebook, choose File > New > Notebook and pick the Python 3 kernel. Notebooks save as .ipynb files in your project folder. Press Ctrl + C in the terminal to stop the server when you're done.
- Prefer the classic notebook view? Install it (optional)
pip install notebook - Start the classic notebook view (optional)
jupyter notebookThis opens the older, simpler Jupyter Notebook screen instead of JupyterLab. Press Ctrl + C to stop it.
Check it worked
- Check Jupyter is installed in the environment
jupyter --version
Undo it
- Remove Jupyter
pip uninstall -y jupyterlab notebookYour notebook files stay in your folder.
- Switch the environment off
deactivate