The Notebook is a multi-cell Python environment for the times a single script isn’t enough. Split an analysis into steps, run them in order, and keep the output beside the code — then export the final plot as a figure.
Cells that run in order
Add cells and write Python in each. Run a cell on its own, or use Run All to execute the notebook top to bottom. State carries between cells, so you can load data in one, transform it in the next, and plot in a third.
# Cell 1 — load
import numpy as np
data = np.loadtxt("measurements.csv", delimiter=",")
# Cell 2 — plot
import matplotlib.pyplot as plt
plt.scatter(data[:, 0], data[:, 1], s=8)
Captured output
Each cell captures its stdout and its plots, shown directly beneath the code. This makes the notebook a good place to check intermediate values as you build an analysis, not just the final figure.
From notebook to figure
When the final plot is right, export it as a PDF figure or insert it into your paper. As with every Figure Studio object, the notebook is saved with the figure and reopens for editing later.
Note: The notebook is for building the figure; keep the heavy narrative in your paper. Reach for it when a plot depends on a few steps of setup rather than one call.