# REPL, Notebooks and DevTools

> Three places to try code and see the answer at once. A REPL runs in the terminal. A notebook saves it. DevTools sit in the browser.

**Course:** [Code Editors and Package Managers](https://learn.benibix.com/learn/development-tools)  
**Time:** 11 min

**After this lesson you can:**

- Try a line of code in a REPL
- Say what a notebook cell is
- Open DevTools and read an error

## Where to try one line of code and see the answer

A REPL lets you type one line of code and see the answer at once. The name stands for read, eval, print, loop. Type python3 in a terminal, then 2 + 3, and it prints 5 and waits for the next line. It is the fastest way to test a small idea.

Python's REPL shows three greater-than signs while it waits. Type node instead, and you get one for JavaScript. Type a word in quotes with .upper() after it, and it prints the word in capitals. You find out what a line does in two seconds, without making a file.

When you close a REPL, the code is gone. That is fine for a quick test and bad for real work. Anything you want to keep belongs in a file, such as a .py file you can run again.

A Jupyter Notebook keeps the quick answers and saves them. It is a page split into cells. A code cell runs when you press Shift and Enter, and its output shows just below it, even a chart. A text cell holds notes. The file ends in .ipynb, and people in data and science use it a lot.

Cells can run in any order, and that is the notebook's trap. Run cell 5 before cell 3, and the page shows results that running it from the top would not give. Before you share a notebook, restart it and run every cell from the top.

Browser DevTools are the same idea for web pages. They are built into every major browser. The Elements tab shows the page's HTML and CSS, and you can change them live. The Console shows errors and runs JavaScript. The Network tab lists every file the page asked for.

In Chrome you open DevTools with F12, or by right-clicking and choosing Inspect. A change you make there is gone when you reload the page. It is a place to try a fix, then copy it into your own files.

```console
$ python3
>>> 2 + 3
5
>>> "hi".upper()
'HI'
```
Python's REPL: type a line, see the answer, type the next one.

![A loop of four steps drawn as a circle: read what you type, run it, print the answer, then wait for the next line. Beside it, a terminal shows the Python prompt >>> with 2 + 3 typed in and 5 printed under it. Under that, a notebook shows the same idea in cells, a code cell with its output right below it.](https://learn.benibix.com/diagrams/dev-repl.svg)

### Example: Lucy fixes a button in the browser

Lucy's button sits 20 pixels too low. She opens DevTools with F12, picks the button and tries three margin values in the Elements tab.

The third one looks right. She copies that one line into her CSS file, saves, reloads, and the fix stays.

**Words in this lesson:** [Read-Eval-Print Loop (REPL)](https://learn.benibix.com/term/development/repl), [Jupyter Notebook](https://learn.benibix.com/term/development/jupyter-notebook), [Browser DevTools](https://learn.benibix.com/term/development/browser-devtools)

**Question:** Why did my change in DevTools disappear?

**Answer:** Changes in DevTools are gone when the page reloads. DevTools edits the copy of the page in your browser, not your files. Copy the change into your own code to keep it.

---

Source: https://learn.benibix.com/learn/development-tools/repl-notebooks-and-devtools
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
