Jupyter Notebooks
AI engineers use a Jupyter notebook like a rough notebook for code. You try one small step, see the result right away, and then try the next step. This lesson shows how it works, the trap that catches almost everyone, and when to leave it.
New words
- Notebook
- A file where you write code, run it, and see the results below it.
- Cell
- One small block of a notebook that holds either code or text.
- Output
- The result that appears below a cell after you run it.
- Kernel
- The program behind a notebook that runs your code and remembers your variables.
- Markdown
- A simple way to write headings, bold text and lists with symbols.
- Hidden state
- Old values in the kernel that no longer match what the page shows.
What you will learn
- Why do AI engineers use notebooks?
- What is a notebook?
- Code cells and markdown cells
- What is the kernel?
- The classic trap: hidden state
- What does restarting the kernel do?
- Where can you run a notebook?
- Try it: a notebook with a memory
- When should you leave the notebook?
- Common mistakes
- Explain it to a friend
- Key takeaways
10 quiz questions at the end.
The full lesson, with interactive demos and the quiz, opens after you sign in with Google. It is free.