Example notebook audit
Example notebook audit
The original audit read every cell, saved output, and AI question in 25 existing notebooks, comprising 24 gallery notebooks and data/ecosystem-lesson.ipynb. The source reviewed is main commit 85f91d9b6a51c000adc8360e77e584f122911244. None was executed for that original audit. The dated update below records the later execution and saved-answer refresh. Saved evidence describes earlier runs; it does not establish that a fresh run will succeed with your devices, browser, network, or model connection.
The examples are sensible as individual tool lessons. They are less effective as application tutorials because a reader must join the steps, handle pending receipts, and decide what to produce. The five new application notebooks fill that gap. They now include saved worked answers and Python results, as described in the update below.
Saved-answer update: 2026-10-21
At this audit update, the collection had 187 completed saved answers for 187 AI prompts, across all 29 gallery notebooks. All 158 earlier answers were retained; 29 answers were collected from the live ChatGPT connection in an isolated background JupyterLab. The supporting ecosystem notebook has no AI prompts. The static site displays these saved answers without making new model requests.
The later starter tools tutorial adds a thirtieth gallery notebook. Its five AI questions have real saved ChatGPT answers and observed-tool tables. The collection therefore has 192 completed answers across 30 gallery notebooks. Its live-note answer was collected after an editor change, with the saved file checked to still contain the earlier placeholder. A separate deterministic browser check also verifies reading an edit before it is saved. The dated rows below describe the earlier audited collection.
The three media applications use a labelled synthetic canvas and generated silent audio. Their capture, recording, annotation, attachment and export results are real tool executions on those fixtures, not physical-device acceptance or evidence of a real bug. The presenter’s alternate paste-ID capture route remains interactive; its direct and model-authored decks were checked. The attachment/integration examples use their generated blue/red PNGs. The camera notebook’s new cleanup continuation uses a fresh synthetic source; its earlier real-device observations remain historical records.
The updated rows below reflect the completed saved questions. Keep answer protects a saved response from rerunning; turn it off when collecting a new answer, and recreate kernel state and fresh media references instead of replaying historical operation IDs.
Walkthroughs and the supporting notebook
| Notebook | What it actually does | Reading caution and useful adaptation |
|---|---|---|
| Quick start | Reads a live score and records observed add_bonus calls with saved answers. |
A useful first lesson in values versus callable tools. Adapt it to a small grading or budgeting what-if; model calls can change kernel state. |
| Context selection | Calculates practice-score averages and saves an answer that reports the later note was absent from its selected context. | Full, Custom, and current-question-only choices remain exercises, rather than saved outcomes for every mode. Useful for a tutor seeing only relevant lesson material. |
| Live variables and tools | Saves real record_bonus and average_score calls, with kernel checks confirming one bonus call and the unchanged state after the mean. |
Recreate the setup state after a kernel restart; kept answers do not replay mutations. |
| Socratic learning dialogue | Saves three tutor turns about the deliberately incorrect even-number counter. | The supplied third learner follow-up requests a small diagnostic; the function remains intentionally unfixed. |
| Bundled tools | Finds a live name, searches/reads the saved lesson fixture, and inserts an unexecuted code draft. | Keep data/ with the notebooks and follow the path setup. Insertion does not execute the draft. Useful for recovering an earlier method and drafting a follow-up. |
| Live notebook tools | Saves actual live cell listing, source reading and Markdown insertion through AI tools. | The source-reading target is deliberately unexecuted; source visibility is independent of execution. |
| Python and web tools | Saves Python inspection, a custom alias call, a public-page fetch, and an inserted source-linked note. | The note is a historical web snapshot; future public content can differ. Useful for documenting an analysis method beside the code. |
| Fastcore tools | Shows function documentation and edits disposable text with observed direct/AI calls. | fastcore-review retains an earlier planned output from before the AI edit. Rerun that inspection after the edit to read the current file. Useful for maintaining a short methods note. |
| Project tools | Searches source/notebooks, reads outlines, inspects hashes, and performs checked edits in a disposable project. | Rerunning setup rebuilds its fixtures. Disk changes and notebook saves are separate. Useful for a reproducibility audit, but the sample does not assemble a final handoff report. |
| Image from output to question | Saves a verified direct output export/crop/save sequence, a fresh status lookup, an attachment preflight and the final red-image answer. | The earlier initial AI listing is historical; the new status question explicitly uses the current direct operation ID. |
| Jupyter AI and nbinlineai together | Computes flower-visit rates, checks them, saves inline explanations, and inserts a code draft. | Separate Jupyter AI chat/refactoring prompts are instructions, not saved chat edits. The two connections and histories remain separate. Useful for a coding conversation alongside local explanations. |
| Codex ACP worked example | Runs a revenue summary with a deliberately failing zero-versus-missing diagnostic; saves inline explanations. | Preserve the intentional if amount bug in revenue-summary-draft. The chat repair is an exercise, not a completed saved repair. Useful for teaching meaningful checks before accepting code. |
| Supporting ecosystem fixture (editable source) | Provides four source-only cells containing invented lichen observations for saved-notebook searches. | A fixture with its own readable page, not an executed ecological analysis or gallery walkthrough. Keep it beside examples that read it. |
Tool catalog notebooks
| Notebook | What it actually does | Reading caution and useful adaptation |
|---|---|---|
| Live Python inspection | Uses namespace, value, documentation, source, registered-skill, and tracing tools through direct calls and saved AI traces. | trace_function executes its target once; it is not passive inspection. Documentation lookup may import a module. Useful for locating an unexpected calculation and explaining the API used. |
| Saved files and source | Demonstrates the file tools on independent disposable files, with direct calls, observed AI edits, and final inspection. | Keeping an AI answer does not undo or repeat its disk mutation. Useful for checked edits to a methods/configuration file; reread after editing. |
| Saved notebooks | Lists, searches, outlines, finds, and reads a generated saved-notebook fixture. | These tools see saved source, not unsaved live edits or live kernel values. Useful for an archive inventory or recovering a prior instrument setting. |
| Live notebook cells | Saves traces of live read/find/edit/reorganize operations, plus inserted Markdown and unexecuted code. | Scratch cells were restored for replay, so their present source is not the final edited state. Manual comparisons are recorded observations. Useful for reorganizing a report with exact source checks and manual code execution. |
| Public web pages | Reads a public page and section, then inserts a bounded source-linked note. | Needs public network access; web text and section addresses can change. Useful for a cited reading or method note, not general authenticated browsing. |
| Local processes | Runs small Python/shell commands and reads an owned tmux pane, with cleanup. | Commands execute real code; tmux requires that local program. Useful for bounded environment diagnosis or reading a job log. |
Browser and media notebooks
| Notebook | What it actually does | Reading caution and useful adaptation |
|---|---|---|
| Browser-media foundation | Checks capabilities, saves a tiny exact-file copy, checks status, cancels completed work, and releases managed media, with direct and AI evidence. | Cancelling a completed save does not delete its file. Setup now asks for the server root before constructing an exact file reference. A good receipt lesson, but it produces a test image rather than an application. |
| Camera, microphone, and display | Contains real saved camera still/video, microphone levels/recording, display capture, and recording-control evidence. | capture-ai-camera-stop-ready now stops and confirms a fresh synthetic source in a separately labelled continuation. Late releases include expired references and stale_target; do not read this as successful cleanup of every item. Resume also has a recorded UI transition. Useful capture primitives, but no combined presentation. |
| Notebook outputs and canvas | Reads/exports text, structured output, PNG/SVG, canvas, and a visible notebook region with saved terminal receipts. | Empty selection is honestly empty; a separate selection trial is nonempty. Region capture requires the relevant output to be visible. Useful for taking exact figures and results into a report. |
| Import, playback, and clipboard | Chooses/imports media, plays disposable audio, changes playback, and demonstrates visible clipboard actions. | The paste trial uses separately seeded clipboard content; it does not establish a Copy-to-Paste chain. Setup now asks for the server root before constructing generated-file references. Useful for reviewing a narration recording. |
| Media transformations | Reads the exact companion WebM, extracts frames, crops, redacts, saves derivatives/provenance, and releases managed items. | Extracted frame times differ from requested times; use returned timestamps. Codec support varies. Useful for annotated experiment evidence or redaction; a remote fallback may need network access. |
| Attach an image | Retains the earlier confirmation records and adds the final native-image answer identifying the generated square as blue. | Confirmation alone does not run a question; the new worked run explicitly attached the generated still and then ran attachment-question. Setup uses the owned runner’s explicit server root or asks interactively. |
What to carry into your own application
- Check the final effect. A requested save, initial receipt, confirmed attachment, inserted code draft, and completed AI question are different outcomes. The existing traces make many of these visible, but a demonstration that stops early needs your next step.
- Use values and references deliberately. Ordinary tools return values. Direct browser tools return a mutable receipt that can later contain real Python values. AI browser tools return snapshots and descriptors. The application guide and receipt tutorial show how to continue into Python.
- Keep paths honest. A browser-saved path is relative to the Jupyter server root. The kernel’s working directory can differ. The six original file-reading or file-saving media notebooks now request an explicit absolute server-root folder, check that the entered folder contains the kernel working folder, and use the mapping both for generated references and for returned paths or cleanup. Do not turn a returned path into
Path.cwd() / path. The new media applications use in-memory capture and owned Python exports, or request that mapping for saved-file handoffs. Keep the transforms notebook’s companionmedia/file for offline use. - Do not infer senses from descriptors. The model cannot hear a recording or see a screenshot merely because a tool reports its MIME type and hash. Only a still explicitly attached to the question becomes image input. Transcription, video understanding, and media mixing require additional processing.
- Finish with something useful. The new presenter, bug-report, data-investigation, and project-handoff notebooks preserve local artifacts rather than stopping at a tool receipt. They separate interactive stages and keep cleanup from deleting those deliverables.