Skip to main content
Jupyter Notebooks
CHAPTER 03 Beginner

Understanding the Jupyter Interface

Updated: May 18, 2026
5 min read

# CHAPTER 3

Understanding the Jupyter Interface

1. Chapter Introduction

When you launch Jupyter Notebook for the first time, the interface can feel unfamiliar. It doesn't look like a standard code editor like PyCharm, nor does it look like a word processor like Microsoft Word. It is a hybrid of both. This chapter breaks down the anatomy of the Jupyter interface, from the dashboard file browser to the notebook workspace and the toolbar.

2. The Jupyter Dashboard (Tree View)

When you run jupyter notebook, the first screen you see is the Dashboard (usually at localhost:8888/tree).

The Dashboard serves three purposes:

  1. 1. File Browser: It shows the files and folders in the directory where you launched Jupyter. You can click folders to navigate your computer.
  1. 2. Notebook Management: You can see which notebooks are currently running. Running notebooks have a green icon next to them.
  1. 3. Creation Hub: The "New" button in the top right corner allows you to create new notebooks, text files, or folders.

*Best Practice:* Always open your terminal/command prompt in your specific project folder *before* typing jupyter notebook. This ensures your dashboard opens directly into your project files, keeping you organized.

3. Anatomy of a Notebook

Once you click "New -> Python 3", a new tab opens. This is the Notebook Workspace.

1. The Header and Menu Bar

  • Title: At the very top, it says "Untitled". Click this to rename your notebook.
  • Menu Bar (File, Edit, View, Insert, Cell, Kernel, Help): Contains all operations.
  • *File -> Download as:* Export your notebook to HTML or PDF.
  • *Kernel -> Restart & Clear Output:* Wipes the slate clean to test your code from scratch.

2. The Toolbar Located below the menu, it contains quick-access buttons:

  • 💾 Save: Manually creates a checkpoint (Jupyter also auto-saves every 120 seconds).
  • Insert Cell: Adds a new cell below the current one.
  • ✂️ Cut / Copy / Paste Cells: Move cells around.
  • ▶️ Run: Executes the current cell.
  • ⏹️ Stop: Interrupts the Kernel if your code is stuck in an infinite loop.
  • 🔄 Restart: Restarts the Kernel.
  • Dropdown (Code / Markdown): Changes the type of the current cell.

4. The Two Modes: Command vs. Edit

This is the most confusing part for beginners. Jupyter has two distinct modes, indicated by the color of the border around the active cell.

1. Edit Mode (Green Border)

  • How to enter: Click *inside* the text area of a cell, or press Enter.
  • What it does: You are typing code or text inside the cell. Keyboard shortcuts type characters (e.g., pressing 'c' types the letter 'c').

2. Command Mode (Blue Border)

  • How to enter: Click on the *left margin* of the cell, or press Esc.
  • What it does: You are manipulating the notebook structure. Keyboard shortcuts act as commands.
  • Press A to insert a cell Above.
  • Press B to insert a cell Below.
  • Press DD (D twice) to Delete the cell.
  • Press C to copy the cell.

5. The Concept of "Cells"

A notebook is just a vertical list of cells. There are two primary types of cells you will use:

  1. 1. Code Cells: This is where you write Python. When executed, the code runs, and the output appears immediately below the cell.
  1. 2. Markdown Cells: This is where you write formatted text, headers, and explanations. When executed, the raw markdown renders into beautiful typography.

6. The Kernel Status Indicator

Look at the top right corner of the notebook, near the Python 3 logo. You will see a small circle.

  • Empty Circle ◯ : The Kernel is idle and ready for your next command.
  • Filled Circle ⬤ : The Kernel is busy executing code. (Do not run more cells while this is filled; they will just queue up and wait).

Next to a code cell, you will see In [ ]:

  • In [ ]: The cell has not been run yet.
  • In [*]: The cell is currently running.
  • In [1]: The cell has finished running. The number indicates the execution order.

7. Common Mistakes

  • Typing code in a Markdown cell: If you write print("hello") in a Markdown cell and hit Shift+Enter, it just displays the text print("hello") instead of actually running the Python code. Always check the toolbar dropdown to ensure you are in a "Code" cell.
  • Deleting cells by accident: Beginners often press D twice while in Command Mode and accidentally delete a block of code. You can undo this by pressing Z (while still in Command Mode) or going to *Edit -> Undo Delete Cells*.

8. MCQs

Question 1

When you launch Jupyter, the first screen you see showing your files is called the?

Question 2

How can you tell if a Jupyter Notebook is currently running in the background from the Dashboard?

Question 3

If the border around your cell is Green, which mode are you in?

Question 4

If you press 'B' while in Command Mode (Blue border), what happens?

Question 5

How do you switch from Edit Mode (Green) to Command Mode (Blue)?

Question 6

What does In [*]: next to a cell mean?

Question 7

If the Kernel status circle in the top right is completely filled solid (⬤), it means?

Question 8

Which toolbar button allows you to stop code that is stuck in an infinite loop?

Question 9

How do you recover a cell you accidentally deleted?

Question 10

To change a cell from Code to text/documentation, you change the cell type to:

9. Interview Questions

  • Q: Explain the difference between Command Mode and Edit Mode in Jupyter. Why does this distinction exist?
  • Q: If your code seems to be running forever and the cell says In [*], what are your options to regain control of the notebook?

10. Summary

The Jupyter interface consists of the Dashboard (for file management) and the Notebook Workspace. The workspace is divided into discrete Cells (Code and Markdown). Navigation relies on understanding the two modes: Edit Mode (Green, for typing code) and Command Mode (Blue, for managing cells using keyboard shortcuts like A, B, and DD). Always watch the Kernel indicator (◯ vs ⬤) to know if Python is currently busy.

11. Next Chapter Recommendation

In Chapter 4: Running Python Code in Jupyter, we will dive into executing code, understanding variables in the Kernel's memory, and mastering the order of execution.

Finish this Chapter

Save your progress on your learning path and prepare for coding interview challenges.

Discussion

Join the discussion

Log in or create a free account to participate.

Sort: ·