Skip to main content
Jupyter Notebooks
CHAPTER 17 Beginner

JupyterLab and Advanced Features

Updated: May 18, 2026
5 min read

# CHAPTER 17

JupyterLab and Advanced Features

1. Chapter Introduction

If you have been using the classic Jupyter Notebook interface, you might have noticed it feels a bit dated. Opening multiple notebooks requires multiple browser tabs, and moving data between them is clunky. Enter JupyterLab—the next-generation, web-based user interface for Project Jupyter. It is fundamentally replacing the classic notebook interface, offering an IDE-like experience directly in your browser.

2. What is JupyterLab?

JupyterLab is the evolution of Jupyter Notebook. It allows you to work with documents and activities such as Jupyter notebooks, text editors, terminals, and custom components in a flexible, integrated, and extensible manner.

How to launch JupyterLab: If you installed Anaconda, it is likely already installed. In your terminal, instead of typing jupyter notebook, type:

bash
1
jupyter lab

Your browser will open to localhost:8888/lab.

3. The JupyterLab Interface

When you open JupyterLab, it feels like a modern code editor (like VS Code).

1. The Left Sidebar:

  • File Browser: A collapsible file tree.
  • Running Terminals and Kernels: See exactly what is currently executing in memory.
  • Table of Contents: Automatically maps the Markdown headers in your active notebook (no extensions required!).
  • Extension Manager: Install new plugins directly from the UI.

2. The Main Work Area (Tabs): Instead of opening new browser tabs, JupyterLab opens notebooks as tabs *inside* the application.

4. Split-Screen Workflows

This is JupyterLab's killer feature. You can drag and drop tabs to arrange your work area.

  • Notebook side-by-side: Drag a notebook tab to the right side of the screen. You can now view two notebooks at exactly the same time.
  • Code vs Output: You can right-click a cell in a notebook and select "Create New View for Output". The chart will appear in a separate panel. You can scroll through the code while keeping the chart pinned on the screen!

5. Integrated Terminals

In classic Jupyter, if you needed to use git or install a package using pip, you had to leave the browser and open your system terminal.

In JupyterLab:

  1. 1. Click File -> New -> Terminal.
  1. 2. A full system terminal opens as a tab inside JupyterLab.
  1. 3. You can run pip install pandas or git commit directly alongside your notebook.

6. Text Editors and CSV Viewers

JupyterLab is not just for notebooks.

  • CSV Viewer: Double-click a CSV file in the file browser. Instead of opening it in Excel, JupyterLab opens it as a high-performance data grid.
  • Text Editor: You can open .py files, .md files, or .txt files, edit them with syntax highlighting, and save them.

7. Advanced: Creating a Console attached to a Notebook

Sometimes you want to test a quick snippet of code without cluttering your beautiful notebook with temporary cells.

  1. 1. Right-click anywhere in your notebook.
  1. 2. Select "New Console for Notebook".
  1. 3. A console opens at the bottom of the screen.
  1. 4. It shares the *exact same Kernel memory* as the notebook. You can test variables, run quick math, and the notebook remains clean!

8. Common Mistakes

  • Being intimidated by the change: Many users stick to classic Jupyter because they don't want to learn a new interface. JupyterLab supports the exact same .ipynb files. The transition takes about 10 minutes, and the productivity gains are immense.
  • Forgetting to close Kernels: Because JupyterLab makes it so easy to open 15 notebooks in tabs, users often leave them all running. This consumes massive amounts of RAM. Use the "Running" tab in the left sidebar to shut down Kernels you aren't actively using.

9. MCQs

Question 1

What is JupyterLab?

Question 2

How do you launch JupyterLab from the terminal?

Question 3

Unlike classic Jupyter, how does JupyterLab handle opening multiple notebooks?

Question 4

Can you view two notebooks side-by-side in JupyterLab?

Question 5

What feature allows you to keep a Matplotlib chart visible on screen while you scroll through the rest of the code?

Question 6

Does JupyterLab include a system Terminal?

Question 7

What happens if you double-click a .csv file inside JupyterLab?

Question 8

What is the benefit of opening a "New Console for Notebook"?

Question 9

Which sidebar tab helps you prevent RAM exhaustion?

Question 10

Are classic .ipynb notebooks compatible with JupyterLab?

10. Interview Questions

  • Q: Compare classic Jupyter Notebook with JupyterLab. What specific features make JupyterLab more suited for professional software development?
  • Q: You need to edit a .py script, run a terminal command, and test a notebook concurrently. How does JupyterLab facilitate this workflow?

11. Summary

JupyterLab is the future of Jupyter. It brings an IDE-like experience to the web browser. With features like drag-and-drop split screens, integrated terminals, CSV viewers, and attached scratchpad consoles, it drastically reduces the need to switch between different applications while doing data science. It is fully backwards compatible with all your existing .ipynb files.

12. Next Chapter Recommendation

In Chapter 18: Performance Optimization in Jupyter, we address the biggest complaint about Jupyter: memory crashes. You will learn how to handle massive datasets and optimize the Kernel.

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: ·