notebook-split-cells

Split Jupyter notebook cells so each cell performs only one logical task

SKILL.md

GitHub

Goal

  • Make sure that each code cell in a Jupyter notebook performs only one logical task

Conventions

  • Implement the rules in .claude/skills/notebook.rules.md under
    • ## Single Responsibility Per Cell and
    • ## Split Cells That Perform Distinct Steps

Workflow

Sync with Jupytext

  • At the end, sync the paired .py file with Jupytext following the conventions in # Code Architecture and Responsibility -> ## Utilities vs. Notebook Responsibilities in .claude/skills/notebook.rules.md

Verification

  • Confirm every code cell performs exactly one logical task
  • Confirm the .ipynb and paired .py file are in sync via Jupytext