By the end of this lesson, you will be able to:
:information_source: What is Jupyter Notebook? Jupyter Notebook is an interactive tool that lets you write and run Python code in small chunks. You can also add notes and explanations right next to your code!
Jupyter Notebook is one of the most popular tools that data scientists use. Here's why it's so great:
Markdown text helps you write notes with special formatting (like making text bold or italic).
Key advantages of Jupyter Notebook:
:bulb: File Format Jupyter notebooks save as .ipynb files (stands for "IPython Notebook").
Google Colaboratory (or "Colab" for short) is Google's free version of Jupyter Notebook. It works right in your web browser!
:memo: Why Use Google Colab?
- It's completely free
- No installation needed
- Works on any computer with internet
- Automatically saves to Google Drive
Learn more about Google Colab: Introduction to Colab Video
Go to colab.research.google.com. Make sure you're signed in to your Google account.
Click on "New Notebook" to start your first Colab project.
Click on the file name to rename it. Keep the .ipynb extension at the end!
:bulb: Example For this lesson, we'll name our file: Intro.ipynb
A Python code cell is where you write code that the computer can run. When you run the cell, you'll see the results right below it!
Markdown Text Cells let you write notes and explanations. You can make your text look fancy with different styles!
:emoji: Add a text cell: Click "+ Text" to create a new text cell
# Headings: Use hashtags to create titles
# Big Title
(1 hashtag)## Medium Title
(2 hashtags)### Small Title
(3 hashtags)Bold text: Wrap text with **
on both sides
**This is bold**
-> This is boldItalic text: Wrap text with *
on both sides
*This is italic*
-> This is italicStrikethrough: Wrap text with ~~
on both sides
~~This is crossed out~~
-> Links: Use [text](URL)
format
[Click here](https://google.com)
-> Click hereAll your Colab notebooks automatically save to Google Drive!
:memo: Auto-Save Feature Google Colab saves your work automatically every few minutes. You don't need to worry about losing your progress!
You've learned about:
Try these prompts with AI to practice what you've learned:
:bulb: Practice Makes Perfect! Try creating your own notebook with:
- A markdown cell introducing yourself
- A code cell with a simple calculation
- Another markdown cell explaining what your code does