Jupyter Notebooks: A '0 to 1' Guide

What is a “notebook”?

A Python notebook isn’t a “program” in the traditional sense; it’s a document that holds three things at once:

  1. Plain Text: Explanations, notes, and titles (like a Word doc).
  2. Live Code: Real snippets of instructions that the computer can run.
  3. Visual Results: Graphs, images, or data tables that appear instantly after the code runs.

It’s like a digital recipe book. In a regular cookbook, you read the instructions and then go to the stove to cook. In a Notebook, the “instructions” are right there, and you just click a button to “cook” the dish instantly on the same page.

Here is an example of a Notebook file from Data-Science-For-Beginners:

sample notebook

What is a Jupyter Notebook?

You will often hear these three names used interchangeably, but here is how they differ:

A Simple Comparison

Feature Jupyter Notebook Google Colab
Where it runs Your own computer Google’s “Cloud” computers
Internet Not required Required
Best for Private, local data work Collaborating and using free AI power
Vibe “The desktop app” “The Google Doc”

Why it Matters for AI

Why don’t AI developers just use a “normal” code editor? There are three main reasons:

Notebooks are the ultimate “sandbox.” Instead of writing a massive program and hoping it works, you can test one tiny piece at a time.

Learning Resources

If you want to get really good with using Notebooks (and get into AI), try:
Kaggle courses: Aimed at complete beginners wanting to get into Machine Learning. Starts with teaching Python and programming in general, then moves on to Machine Learning and more advanced concepts in a digestible and engaging way.
DeepLearning.AI’s Short Courses: For those wanting to understand the fundamentals of modern Gen AI applications. Heavily covers LLM’s and the latest techniques in LLM applications. Each course has a video with a jupyter notebook alongside it, and you can run the cells while you watch the video!

Get Started

If you just want to play with AI right now, Colab is the way to go.

Level 1: Example Colab Notebook

  1. Go to: https://colab.research.google.com/
  2. Sign in with your Google account. You should see a pop up with the title “Open Notebook”.
  3. Click on “Examples” -> “Overview of Colab Features”
  4. This will open up a notebook that has explanations of how to interact with notebooks in Colab. Read through it and run the interactive code cells.

Level 2: Create Your Own Notebook

  1. Go to: https://colab.research.google.com/. Make sure you’re signed in.
  2. In the “Open Notebook” popup, click the “New Notebook +” button.
  3. Select your Python environment.
  4. Try writing some Python cells and Markdown cells and run them.

Graduating to the Big Leagues

Once you’ve experimented in your Notebook and everything works perfectly, it’s time to “build” the actual app.

The Bottom Line: Use Notebooks to explore, fail fast, and perfect your ideas. Use an IDE like VS Code to package those ideas into a professional tool.

Back To Top