Jupyter Notebook
Jupyter Notebook is a web-based notebook environment for interactive computing, enabling users to create and share documents that contain live code, equations, visualizations, and narrative text. The current stable version is 7.5.5. Version 7 represents a significant architectural shift, building its frontend on JupyterLab components and its backend on Jupyter Server. The project maintains an active release cadence, with frequent patch updates and ongoing development towards future major versions.
Warnings
- breaking Jupyter Notebook 7.0 introduced a completely re-architected application based on JupyterLab components and Jupyter Server. This breaks backward compatibility with extensions and configurations designed for Notebook 6.x and earlier versions.
- gotcha Classic Notebook extensions are not compatible with Notebook v7's new architecture. The extension system is now aligned with JupyterLab's.
- deprecated Python 3.9 support is being phased out in testing/CI for Notebook 7.5.x, although the PyPI metadata currently lists Python 3.9 as supported.
- gotcha The `jupyter notebook` command (for v7) shares its underlying server and extension system with JupyterLab. If both are installed, they can detect and enable each other's user experience.
Install
-
pip install notebook
Quickstart
# 1. Start the Jupyter Notebook server from your terminal:
# Navigate to your desired working directory first.
# cd /path/to/your/notebooks
# jupyter notebook
# 2. Once the browser opens, click 'New' -> 'Python 3' to create a new notebook.
# 3. In the first cell, type and run the following Python code:
print('Hello, Jupyter Notebook!')
# Or a more complex example:
import pandas as pd
data = {'col1': [1, 2], 'col2': [3, 4]}
df = pd.DataFrame(data)
print(df)