一键导入
notebooks-workflows
Reliable workflows for creating and running notebooks (IDLE/IPython/Jupyter/VS Code) with Cline hooks, magics, and context hygiene
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Reliable workflows for creating and running notebooks (IDLE/IPython/Jupyter/VS Code) with Cline hooks, magics, and context hygiene
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Operate Cline CLI safely: core concepts, sandbox rules, provider/model selection, approvals, and common workflows
Iterative improvement of requirements and plans through dialogue and feedback
Deep knowledge gathering with memory-aware search
基于 SOC 职业分类
| name | notebooks-workflows |
| description | Reliable workflows for creating and running notebooks (IDLE/IPython/Jupyter/VS Code) with Cline hooks, magics, and context hygiene |
| when_to_use | when starting or maintaining notebooks in this repo, especially to align Jupyter/VS Code flows with Cline-aware hooks and keep .ipynb structure clean |
| version | 1.0.0 |
| allowed-tools | ["Read","Write","Execute"] |
| compatibility | {"runtimes":["Codex CLI","Claude Code","VS Code AI"],"notes":"use provider-native notebook kernel picker; web_search not required unless explicitly researching"} |
Use this skill to stand up, edit, and share notebooks across IDLE/IPython/Jupyter/VS Code while keeping Cline interop predictable. Keep SKILL.md concise; load references/scripts only if added later.
Create + prime notebook (VS Code or Jupyter)
source .venv/bin/activate (or project env).%load_ext autoreload
%autoreload 2
import os, sys, pathlib
os.chdir(pathlib.Path(__file__).parent if '__file__' in globals() else pathlib.Path().cwd())
sys.path.insert(0, str(pathlib.Path.cwd()))
.ipynb captures kernel spec).Keep outputs sane
analysis/ or data paths, not in notebook cells; reference via relative paths.Run scripts inside notebook
%run script.py for local modules; keep script idempotent.%%bash for CLI steps; echo commands for provenance.pathlib.Path(__file__).parent guards if moving between CLI and notebook contexts.One-button notebook + Cline (conceptual)
pplx-sdk) and avoid “Python 3 (ipykernel)” ambiguity; re-run “Select Kernel” after env changes.import random, numpy as np; random.seed(0); np.random.seed(0)).%autoreload 2 while iterating on local modules.%timeit for micro-bench; %prun for profiling; avoid committing profiler outputs.%%capture cap for noisy setup; log print(cap.stdout) only when needed.analysis/ or data/derived/; never inside .vscode or notebook directory roots unless intentional..ipynb canonical. If metadata bloats, run nbstripout or jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace file.ipynb.python -m ipykernel install --user --name pplx-sdk --display-name "pplx-sdk".ipython --matplotlib=inline; %load_ext autoreload; %run notebook.ipynb is discouraged—convert to .py with jupyter nbconvert --to script.jupyter nbconvert --to notebook script.py --output new.ipynb when needed.analysis/checkpoints/ (pickle/json) and note file paths in markdown.%autoreload: expect module changes not reflected; fix by adding header cell.Path().cwd() in setup cell.%run on notebooks; convert to .py first.allowed-tools limited to Read/Write/Execute; avoid tool-specific calls in instructions.papermill or nbconvert --execute with --ExecutePreprocessor.timeout=600; ensure data paths exist.| Runtime | Tools typically available | Notes |
|---|---|---|
| Codex CLI | Read, Write, Execute | No web_search by default; shell magics via %%bash |
| Claude Code | Read, Write, Execute | Similar to Codex; confirm kernel from status bar |
| VS Code AI | Read, Write, Execute, UI actions | Uses Jupyter extension commands; outputs clearable from UI |