Notebook Basics · Study

English translation

Topics covered

Code alone makes it easy to forget inputs and the reasoning behind decisions. Turn a small experiment into a record you can revisit and check.

Overall workflow

Inputs and units → code/output → explanations/figures → rerun from the beginning

Keep calculations and explanations in one record

Code records calculations; Markdown records input meanings, units, and decision criteria. Instead of pasting only the output numbers, describe the inputs directly above them. Label conditions, axes, and units in tables and plots.

A reproducible record

Notebook cells can be run in different orders, making it easy to depend on variables absent from the visible code. After finishing, restart the kernel and run from the top. Check that the modified conditions and latest output refer to the same experiment.

Worked example

If distances of 1.2, 1.0, and 0.9 m are recorded at times 0, 1, and 2 seconds, the interval rates of distance change are −0.2 and −0.1 m/s. State inputs and units before the code, and explain the negative signs beside the results.

Reference example

View more examples

Reference materials