AGENT SKILL

Jupyter Notebook 单元格拆分

notebook.split_cells

拆分 Jupyter notebook 单元格,使每个单元格只执行一个逻辑任务

适用职业数据分析师
使用场景代码实现
License 许可
Apache-2.0
所属仓库
causify-ai/helpers
最近更新
2026-11-02
Stars
★ 155
Forks
170

01 前言 Front Matter

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

02 资源文件 1

03 SKILL.md 正文

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

04 同仓库更多 Skills