Prefer a graphical interface? See How to open JupyterLab with Anaconda Desktop or How to open JupyterLab with Anaconda Navigator.
Prerequisites
- Miniconda installed. See the Miniconda installation guide for your platform.
- Basic familiarity with conda commands and your system’s terminal.
Steps
1
Create and activate a conda environment
To avoid conflicts with other projects, create a dedicated environment rather than installing into Your command line updates to show the active environment name.
base. Include jupyterlab in the environment creation command to install it along with Python.Open (Terminal on macOS/Linux) and run:2
Launch JupyterLab
Start the JupyterLab server:The terminal prints a startup log and JupyterLab opens automatically in a new tab in your default browser.
Browser didn't open?
Browser didn't open?
Look for lines in your terminal output that look similar to the following:Copy one of the URLs and paste it into your browser’s address bar to open JupyterLab manually.
Example output
3
Open a notebook in your environment
In the Launcher, under Notebook, click the tile for your environment. It might appear as Python 3 (ipykernel) or Python (your-environment-name).A new notebook opens with your environment’s kernel active.
4
Stop the JupyterLab server
When you’re done, return to the terminal where JupyterLab is running and press Ctrl+C.The server stops and the JupyterLab tab in your browser becomes unreachable.
Troubleshooting
Additional resources
- For help with JupyterLab’s interface and features, see JupyterLab’s official documentation.
- To create, update, or remove conda environments, see Managing conda environments.
- To add packages to your environment, see Installing conda packages.
- To use Jupyter Notebooks with Package Security Manager (On-prem), see Jupyter Notebooks.
- To use Jupyter Notebooks in the browser without a local installation, see Anaconda Notebooks in the Package Security Manager (Cloud) documentation.