AGENT SKILL

notebook.format_interactive_cells

Format markdown cells corresponding to interactive cells in a Jupyter notebook

License 许可
Apache-2.0
所属仓库
causify-ai/helpers
最近更新
2026-11-02
Stars
★ 0
Forks
1

01 前言 Front Matter

model
haiku
description
Format markdown cells corresponding to interactive cells in a Jupyter notebook

03 SKILL.md 正文

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 .py file 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 Details for the structure of pre- and post-visualization markdown cells
    • # Visualization and Interactivity for the interactive widget patterns
    • ## Cell Triplet Structure for 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 .ipynb and paired .py file are in sync via Jupytext

04 同仓库更多 Skills