Goal
- Given a Jupyter notebook, format the markdown cells corresponding to
interactive / visualization cells
- Each visualization uses the triplet structure:
- Pre-visualization markdown (goal, then description of inputs and panels)
- Code cell (visualization / interactive widget)
- Post-visualization markdown (guided usage, then implementation and the
print_obj_info() code cell)
Workflow
Update the Cell Triplets
- Update all markdown cells around interactive cells to follow the triplet
structure:
- Before the visualization: A markdown cell with the goal, then a
description cell with the plot descriptions (under each title) and widget
descriptions (close to each widget)
- After the visualization: A guided-usage markdown cell explaining what
experiments can be done and what was learned, then the implementation cell
and the print_obj_info() code cell
- Follow the conventions from
## Visualization Cell Triplet Details
in .claude/skills/notebook.rules.md
Sync with Jupytext
- At the end, sync the paired
.pyfile with Jupytext following the conventions
in # Code Architecture and Responsibility -> `## Utilities vs. Notebook
Responsibilities in .claude/skills/notebook.rules.md`
Conventions
- Follow the rules in
.claude/skills/notebook.rules.md, especially: ## Visualization Cell Triplet Detailsfor the structure of pre- and
post-visualization markdown cells
# Visualization and Interactivityfor the interactive widget patterns## Cell Triplet Structurefor the overall three-cell organization
Constraints
- Do not change the intent of the notebook
Verification
- [ ] Confirm each interactive cell has both a pre- and post-visualization
markdown cell
- [ ] Confirm the
.ipynband paired.pyfile are in sync via Jupytext