jupyter-notebook 是什么?
把实验、探索分析或教学内容整理成可从头执行的 Jupyter Notebook。这个版本优先使用附带的模板和 new_notebook.py 创建 .ipynb,再填入短代码单元和解释;已有 notebook 则尽量局部修改,保留原来的研究意图。
中文说明由本站依据来源整理;英文原文保留在页面下方。
适合用在
- 需要创建、搭建或修改
.ipynb,用于可分单元执行的实验、数据探索或教程,并希望优先用随附模板脚本起步。
这些情况不适合
- 任务只是编写普通 Python 模块或命令行程序,交付物并不需要 Notebook 结构。
怎么接入你的 Agent?
- 定位完整 Skill 目录
打开本项目来源,核对
SKILL.md及其引用的脚本和资料。 - 交给你正在用的 Agent
在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。
- 确认识别,再做具体任务
让 Agent 回报安装目录和识别到的名称
jupyter-notebook,然后按本页使用示例提供材料。
展开并复制给 Codex 的安装指令
安装并检查 jupyter-notebook
请在 Codex 的当前工作环境中安装并检查 jupyter-notebook 这个 Skill。
项目身份:openai/skills / jupyter-notebook
来源:https://github.com/openai/skills/blob/49f948faa9258a0c61caceaf225e179651397431/skills/.curated/jupyter-notebook/SKILL.md
已定位的源文件:skills/.curated/jupyter-notebook/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Claude Code 的安装指令
安装并检查 jupyter-notebook
请在 Claude Code 的当前工作环境中安装并检查 jupyter-notebook 这个 Skill。
项目身份:openai/skills / jupyter-notebook
来源:https://github.com/openai/skills/blob/49f948faa9258a0c61caceaf225e179651397431/skills/.curated/jupyter-notebook/SKILL.md
已定位的源文件:skills/.curated/jupyter-notebook/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Cursor 的安装指令
安装并检查 jupyter-notebook
请在 Cursor Agent 的当前工作环境中安装并检查 jupyter-notebook 这个 Skill。
项目身份:openai/skills / jupyter-notebook
来源:https://github.com/openai/skills/blob/49f948faa9258a0c61caceaf225e179651397431/skills/.curated/jupyter-notebook/SKILL.md
已定位的源文件:skills/.curated/jupyter-notebook/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 当前 Agent 的安装指令
安装并检查 jupyter-notebook
请在 当前 Agent 的当前工作环境中安装并检查 jupyter-notebook 这个 Skill。
项目身份:openai/skills / jupyter-notebook
来源:https://github.com/openai/skills/blob/49f948faa9258a0c61caceaf225e179651397431/skills/.curated/jupyter-notebook/SKILL.md
已定位的源文件:skills/.curated/jupyter-notebook/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。装好以后,具体怎么用?
准备哪些材料
- 提供研究问题或教学目标、读者水平、输入数据和已有脚本;编辑旧文件时提供原 .ipynb。
- 创建骨架需要 Python;附带脚本只依赖标准库。执行 notebook 的 Jupyter、内核和业务包需按实际内容准备,不能把骨架生成视为依赖已经齐全。
会得到什么
- 完成的 .ipynb 文件及输入数据、环境说明;执行记录与尚未运行的单元分别交代。
实际使用顺序
- 先确定 experiment 或 tutorial:前者围绕假设和比较,后者围绕读者逐步掌握的内容。
- 读取附带模板及对应模式参考,用 scripts/new_notebook.py 创建骨架;将每个操作拆成可以单独理解的小单元,并在 Markdown 单元说明目的和预期结果。
- 已有文件优先改指定单元;条件允许时从干净内核由上至下运行,排除依赖旧变量状态的隐藏前提。环境不能执行时列出原因和本地执行方式。
从一个具体任务开始
本站根据源文件编写的使用示例,未在本站实际运行。示例中的文件由你提供。
复制一个具体任务
教学示例:使用 jupyter-notebook,把我提供的 sales.csv 整理成销售额探索 notebook。文件约定列为 date、region、revenue;先核对实际列与日期、金额类型。选择 experiment 模式,用附带脚本创建 output/jupyter-notebook/sales-exploration.ipynb,依次展示缺失值检查、各地区销售额汇总和一张对比图。不要填造缺失数据;能执行就从头执行,不能执行就明确说明。预期得到按检查、汇总、图表顺序组织的 notebook;统计值来自实际 CSV。本站未运行此示例。
使用条件与边界
- 模板能减少 JSON 结构错误,不保证分析结论正确或代码可执行;数据和依赖仍决定实际结果。
常见问题
只是创建 notebook 也要安装 JupyterLab 吗?
附带的骨架脚本只使用 Python 标准库。打开和执行 notebook 才需要合适的前端、内核和业务依赖。
为什么要从头运行?
交互操作可能让后面的单元依赖早先遗留变量。重新从头执行能发现这种隐藏状态,但仍不能替代统计方法和结论核对。
来源原文与资料状态
- 源文件
- 已保存 SKILL.md,抓取于 2026-11-16T12:36:35.145Z
- 中文使用说明
- 已针对下方源文件版本整理用途、用法和常见问题
- 安装与任务测试
- 本站未执行安装或任务测试
- 来源复核
- 本页中文用法已对照保存版本的完整 SKILL.md 阅读整理
展开 SKILL.md 原文、章节与历史收录资料
skills/.curated/jupyter-notebook/SKILL.md · 抓取时间 2026-11-16T12:36:35.145Z
以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。
抓取成功不代表已完成安装或任务测试。
Use when the user asks to create, scaffold, or edit Jupyter notebooks (`.ipynb`) for experiments, explorations, or tutorials; prefer the bundled templates and run the helper script `new_notebook.py` to generate a clean starting notebook.
查看源文件章节 / Source sections
- 原文:Jupyter Notebook Skill
- 原文:When to use
- 原文:Decision tree
- 原文:Skill path (set once)
- 工作流程 / Workflow
- 原文:Templates and helper script
- 原文:Temp and output conventions
- 原文:Dependencies (install only when needed)
- 原文:Environment
- 原文:Reference map
原文:Jupyter Notebook Skill
Create clean, reproducible Jupyter notebooks for two primary modes: - Experiments and exploratory analysis - Tutorials and teaching-oriented walkthroughs Prefer the bundled templates and the helper script for consistent structure and fewer JSON mistakes.
原文:When to use
- Create a new `.ipynb` notebook from scratch. - Convert rough notes or scripts into a structured notebook. - Refactor an existing notebook to be more reproducible and skimmable. - Build experiments or tutorials that will be read or re-run by other people.
原文:Decision tree
- If the request is exploratory, analytical, or hypothesis-driven, choose `experiment`. - If the request is instructional, step-by-step, or audience-specific, choose `tutorial`. - If editing an existing notebook, treat it as a refactor: preserve intent and improve structure.
原文:Skill path (set once)
```bash export CODEX_HOME="${CODEX_HOME:-$HOME/.codex}" export JUPYTER_NOTEBOOK_CLI="$CODEX_HOME/skills/jupyter-notebook/scripts/new_notebook.py" ``` User-scoped skills install under `$CODEX_HOME/skills` (default: `~/.codex/skills`).
工作流程 / Workflow
1. Lock the intent. Identify the notebook kind: `experiment` or `tutorial`. Capture the objective, audience, and what "done" looks like. 2. Scaffold from the template. Use the helper script to avoid hand-authoring raw notebook JSON. ```bash uv run --python 3.12 python "$JUPYTER_NOTEBOOK_CLI" \ --kind experiment \ --title "Compare prompt variants" \ --out output/jupyter-notebook/compare-prompt-variants.ipynb ``` ```bash uv run --python 3.12 python "$JUPYTER_NOTEBOOK_CLI" \ --kind tutorial \ --title "Intro to embeddings" \ --out output/jupyter-notebook/intro-to-embeddings.ipynb ``` 3. Fill the notebook with small, runnable steps. Keep each code cell focused on one step. Add short markdown cells that explain the purpose and expected result. Avoid large, noisy outputs when a short summary works. 4. Apply the right pattern. For experiments, follow `references/experiment-patterns.md`. For tutorials, follow `references/tutorial-patterns.md`. 5. Edit safely when working with existing notebooks. Preserve the notebook structure; avoid reordering cells unless it improves the top-to-bottom story. Prefer targeted edits over full rewrites. If you must edit raw JSON, review `references/notebook-structure.md` first. 6. Validate the result. Run the notebook top-to-bottom when the environment allows. If execution is not possible, say so explicitly and call out how to validate locally. Use the final pass checklist in `references/quality-checklist.md`.
原文:Templates and helper script
- Templates live in `assets/experiment-template.ipynb` and `assets/tutorial-template.ipynb`. - The helper script loads a template, updates the title cell, and writes a notebook. Script path: - `$JUPYTER_NOTEBOOK_CLI` (installed default: `$CODEX_HOME/skills/jupyter-notebook/scripts/new_notebook.py`)
文件 SHA256:62f102e8554b25716dccef0ffab4572d4e3eaf05ccc76562d33a065bc9c521fb
仓库许可证记录:未提供;not-established,查看来源。
Use when the user asks to create, scaffold, or edit Jupyter notebooks (`.ipynb`) for experiments, explorations, or tutorials; prefer the bundled templates and run the helper script `new_notebook.py` to generate a clean starting notebook.
历史收录数据
| 来源仓库 | openai/skills |
|---|---|
| Skill源路径 | skills/.curated/jupyter-notebook/SKILL.md |
安装前请让使用的Agent先读取这个SKILL.md及其所在目录,确认依赖和所需权限。此页不生成未经来源验证的安装命令。
