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 jupyterlabLaunch JupyterLab
jupyter lab2. Create a notebook
- 1In the file browser, select a Python notebook.
- 2Run the interpreter check in the first cell.
- 3Check NumPy and pandas in a second cell.
- 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
- Line 1Load a Python library needed for data work or regression.
- Line 2Load a Python library needed for data work or regression.
- Line 3Load a Python library needed for data work or regression.
- Line 5Display a result so students can inspect the output.
- Line 6Display a result so students can inspect the output.
- Line 7Display a result so students can inspect the output.
Your setup progress