A notebook can display convincing outputs that were produced by cells the reader can no longer run in their displayed order. Variables may survive from an earlier edit, a file may exist only on the author's machine, or a saved result may outlive the code that generated it.
Approve the lesson from a declared starting state and a fresh kernel, then execute the documented path in order. Compare the resulting observations with the instructional promises. A clean display alone cannot establish this behavior.
The runtime matrix identifies supported environments. This review adds the notebook's execution order and state dependencies. Both matter, but a list of compatible versions does not reveal a variable created in a deleted cell.
Declare inputs before executing cells
Record the notebook revision, runtime, package environment, kernel identity, working directory, fixture files, external dependencies, and any required user inputs. Prefer small synthetic local data when that can teach the same operation without account access or private records.
Distinguish input files from generated outputs. If the notebook reads a file produced by an earlier run, the fresh-state test should either create it through documented steps or fail meaningfully. Do not silently carry it into the review workspace and call the notebook self-contained.
Write down whether a network connection is required. A downloaded dependency and a live data query have different failure modes. A reproducible local fixture should not be described as a validation of a changing external service.
Use execution tooling with explicit settings
The NBClient documentation describes executing a notebook's input cells and saving the resulting notebook. It exposes settings including the kernel and cell timeout, with separate guidance for error handling. Those controls help define a review run; they do not choose the correct pedagogical contract for you.
Record the relevant settings rather than relying on invisible defaults. A generous timeout can hide an unexpectedly slow step, while a short timeout can reject an otherwise valid environment. Explain the budget used for the lesson and what exceeding it means.
Avoid configuring every error as acceptable merely to produce a complete output artifact. If the lesson intentionally teaches an error, identify that cell and the expected failure specifically. Unexpected errors should remain visible to the release decision.
Check order, repeat execution, and intentional errors
Execute the documented order first. Then decide which repeat behaviors the lesson promises. Re-running a plotting cell may be harmless, while re-running an append cell could duplicate rows. State the supported pattern instead of implying that arbitrary cell order must work.
Add a purposeful failure fixture that removes a required initialization step. The review should detect the missing state rather than obtaining it from the reviewer's interactive session. This is a more meaningful test than observing that every cell has an execution number.
For intentional errors, distinguish the expected exception and lesson purpose from later dependent steps. A beginner should understand whether to continue, repair an input, or restart. Do not turn a failed prerequisite into an unexplained downstream cascade.
Review output as a separate publication surface
Inspect newly generated outputs for credentials, private paths, account identifiers, and accidental data disclosure. The secret review applies to output cells as well as source cells. Clearing code text does not remove a value already printed into the notebook.
Check that tables, charts, and explanatory text agree with the regenerated result. If randomness or time affects output, document the reproducibility boundary and use stable assertions where appropriate. Do not manufacture exact sample values that the supported execution cannot produce.
Keep the reviewed notebook and the learner download aligned. If a publishing step removes output cells, changes metadata, or rewrites file paths, inspect the final download rather than assuming the intermediate execution artifact represents it. Record intentional differences. A reviewer who ran one notebook has not automatically approved a similarly named export produced by a separate transformation. The final file should preserve the input cells and dependency instructions that made the clean execution possible, even when the presentation omits results for teaching purposes.
A notebook may deliberately ship without saved outputs. That is a presentation choice, not evidence that it ran successfully. Preserve execution evidence separately from the reader-facing artifact when necessary.
Release a repeatable state contract
The final receipt should identify the clean starting environment, notebook revision, execution settings, observed result, intentional errors, and remaining external dependencies. Use the acceptance brief to tie those observations to the promised learning outcome.
Repeat the review when cells move, fixtures change, dependencies update, or output explanations are edited. A change to one early cell can invalidate several later saved results without changing their visible formatting.
Approve when a new reader can reach the stated result from the documented starting state without inheriting the author's session. The useful guarantee is bounded and testable: this version of the lesson works along its declared path, with its declared inputs and limitations.
