Jupyter Notebooks are one of the most practical tools you can learn early in Python—especially if you’re doing data analysis, experimenting with code, or building small demos for learning and teaching. Instead of writing code in a terminal-only workflow, Jupyter gives you a clean, browser-based workspace where you can mix executable Python code with formatted notes, headings, bullet lists, and even math equations.
In this tutorial, you’ll learn what Jupyter Notebook is, why it’s so widely used, and how to work with notebooks efficiently—step by step.
Jupyter Notebook is a web application that lets you write and run Python in your browser. It’s part of the broader Project Jupyter, a nonprofit that builds open tools for interactive computing.
Notebooks are popular because they make it easy to:
A notebook is saved as an .ipynb file (short for IPython Notebook). Think of it like a document that contains a sequence of runnable steps.
When you “start Jupyter Notebook,” you are not launching a typical desktop app. You’re actually starting a local web server on your computer. Then your browser opens a page that connects to that server.
This is why you’ll often see a local URL such as:
http://localhost:8888/...http://127.0.0.1:8888/...Both addresses usually point to the same place (your own machine).
jupyter notebookjupyter lab (if you use JupyterLab)If the browser doesn’t open, copy the URL shown in the terminal and paste it into your browser.
When Jupyter opens in the browser, you’ll see a file list—similar to a file explorer.
Key things to notice:
.ipynb are notebooks.A notebook is made of cells. Each cell can be:
This structure is why notebooks feel so productive: you can write a small piece of code, run it, see output, then move to the next piece.
print("Hello from Jupyter!")
Code language: PHP (php)
This executes the cell and moves you to the next cell.
Jupyter has two main modes:
This mode system is what makes Jupyter’s keyboard shortcuts so fast.
Once you’re comfortable with Shift + Enter, the next productivity boost is simple cell management.
Tip: You do not need to memorize everything. Start with Shift + Enter and learn the rest as you need them.
| Action | Shortcut (Command Mode unless noted) |
|---|---|
| Run cell | Shift + Enter (Edit mode or Command mode) |
| Insert cell above | A |
| Insert cell below | B |
| Delete cell | D, D |
| Convert cell to Markdown | M |
| Convert cell to Code | Y |
Not everything in a notebook should be code. Use Markdown cells for headings, explanations, and documentation.
(You can also use the menu: Cell → Cell Type → Markdown.)
# Main Title
## Section Title
### Subsection Title
Code language: PHP (php)
- Item 1
- Item 2
- Sub item
*italic* and **bold**
Run a Markdown cell with Shift + Enter to render it.
Jupyter supports math formatting using LaTeX-style syntax. This is extremely helpful for:
A common approach:
$a^2 + b^2 = c^2$$$
\frac{1}{n}\sum_{i=1}^{n} x_i
$$
Notebooks are designed to be shareable. From the notebook interface, you can export into formats such as:
This is useful when you want to:
One reason notebooks became so widely used is that platforms like GitHub can render .ipynb files in a readable way—code, outputs, and markdown all display cleanly.
If you prefer working inside an IDE, Visual Studio Code can open and run notebooks too (with the right extensions installed). This can be a great alternative if:
If you’re just starting, here’s a simple progression that works well:
Over time, you’ll naturally become fast at notebook-based work without trying to memorize everything at once.
Jupyter Notebooks are a powerful learning and productivity tool because they combine:
.ipynb files, exports, and GitHub renderingIf you can do just one thing confidently today, make it this:
Write a cell → Press Shift + Enter → Observe the output → Repeat.
That single habit will carry you a long way in Python learning, data science, and professional experimentation.