Back to setup choices

Lesson 6 of 9 | 15 minutes

Install and Use JupyterLab

Run interactive notebooks locally in the environment you control.

Open Jupyter installation

After this lesson, you can

  • Install and launch JupyterLab.
  • Create a Python notebook.
  • Identify the interpreter used by a notebook kernel.

1. Install and launch

Activate .venv before installing JupyterLab.

Install JupyterLab
python -m pip install jupyterlab
Launch JupyterLab
jupyter lab

2. Create a notebook

  1. 1In the file browser, select a Python notebook.
  2. 2Run the interpreter check in the first cell.
  3. 3Check NumPy and pandas in a second cell.
  4. 4Save the .ipynb file inside your project folder.

3. When a package seems missing

The notebook kernel may be using a different interpreter from your terminal. Check sys.executable before reinstalling everything.

Live Python

Notebook interpreter check

Notebook interpreter check

Stdout

Run Python to see results here.

Status / stderr

Ready to run Python in your browser.

Line-by-line guide

  1. Line 1Load a Python library needed for data work or regression.
  2. Line 2Load a Python library needed for data work or regression.
  3. Line 3Load a Python library needed for data work or regression.
  4. Line 5Display a result so students can inspect the output.
  5. Line 6Display a result so students can inspect the output.
  6. Line 7Display a result so students can inspect the output.

Your setup progress

Five readiness checkpoints

0% complete