Notebook Refactor

Refactor a Jupyter/.ipynb notebook from top-to-bottom exploratory sprawl into small, named, reviewable functions with clear inputs and outputs. Extract subfunctions, separate config/params from logic, remove hidden cell-order dependencies and global-state leakage, add docstrings and light tests, and make the notebook re-runnable top-to-bottom and diff-friendly. Use this skill whenever the user has a messy notebook they want cleaned up, wants notebook code turned into functions or a module, is preparing a notebook for review/handoff/production, or asks to make an .ipynb readable or testable. This is about code STRUCTURE and reviewability; performance and correctness of data code is python-data-patterns' job.

Methasit-Pun 1520983 4.7 KB Updated

File contents

Methasit-Pun/data_engineer_claude_skills/tree/main/08-code-quality/notebook-refactor commit 1520983f4b

Frequently asked questions

npx skillmds@latest add methasit-pun/notebook-refactor