Skip to content
Back to course

10.2 Jupyter Notebook

A Jupyter Notebook is an interactive document where you write code in cells and run them one at a time, seeing the result immediately below each cell. You can mix code, charts, and explanatory text (Markdown) in the same file.

This cell-by-cell style is perfect for data analysis and AI: you can load data in one cell, clean it in the next, and plot a graph after that — without rerunning everything. A student analyzing Ethiopian rainfall data could test each step and keep notes right beside the results.

Scenario

Your notebook gives a strange error, and you suspect you ran cells out of order. What is the safest fix?

Check your understanding

1/4 · 40 XP

What is the main unit you run code in within a Jupyter Notebook?