Ноутбуки Jupyter
Делает ноутбуки Jupyter для экспериментов и учебных разборов из готовых шаблонов через скрипт на стандартной библиотеке, с правилами структуры и чек-листом прогона. Для случаев, когда нужен новый ноутбук или старый надо сделать понятным и перезапускаемым.
jupyter-notebook- Автор
- OpenAI
- Источник
- openai/skills/skills/.curated/jupyter-notebook @ 49f948f
- Лицензия
- Apache-2.0
Об этом скилле
Что делает
Скилл учит агента создавать и приводить в порядок ноутбуки .ipynb двух видов: эксперименты и учебные разборы. Сначала агент определяет вид: исследование или проверка гипотезы — эксперимент, пошаговое обучение — разбор, а готовый ноутбук — рефакторинг с сохранением замысла. Заодно он фиксирует цель, аудиторию и то, что считать готовым результатом.
Новый ноутбук начинается с шаблона, а не с JSON, написанного руками. scripts/new_notebook.py (только стандартная библиотека) копирует assets/experiment-template.ipynb или assets/tutorial-template.ipynb, подставляет заголовок и записывает файл; существующий без --force не перезапишет. Шаблон эксперимента начинается с цели, ячейки настройки с фиксированным seed и плана: гипотезы, перебираемые параметры, метрики. Остальное задают четыре справочника: experiment-patterns.md (сначала базовый вариант, результаты рядом с кодом, решение о следующих шагах) и tutorial-patterns.md (аудитория и что нужно знать заранее, оглавление, шаги «объяснение — код — вывод», хотя бы одно упражнение с заготовкой ответа). Ещё два — notebook-structure.md (как безопасно править сам JSON) и quality-checklist.md (прогнать сверху вниз, без скрытого состояния, короткие выводы). Если запустить ноутбук нельзя, агент так и говорит и объясняет, как проверить его локально.
Когда включать и когда не надо
Чтобы начать ноутбук для анализа или обучения, а также чтобы превратить запутанный ноутбук или скрипт в такой, который другие смогут прочитать и перезапустить.
Скилл про структуру, а не про конкретную библиотеку или вид анализа; если хватает обычного скрипта или одного графика, пользы от него немного.
Как поставить и вызвать
Команда установки ниже скачивает всю папку: SKILL.md, скрипт, оба шаблона, справочники, иконки, файл метаданных для Codex и лицензию. Скилл запускает скрипт через uv run --python 3.12, подойдёт и обычный python. Для выполнения ноутбуков нужны jupyterlab и ipykernel. Путь к скрипту скилл строит от $CODEX_HOME/skills/, поэтому в других агентах укажите папку, куда поставили скилл, и передавайте --out: путь по умолчанию зависит от места установки скилла, а не от вашего проекта. Вызвать:
- Claude Code:
/jupyter-notebookили попросить скилл по имени. - Codex:
$jupyter-notebook. - Cursor: наберите
/в чате Agent и выберитеjupyter-notebook.
Пример: /jupyter-notebook Сделай ноутбук-эксперимент, который сравнивает три варианта промпта на нашем наборе для оценки.
OpenAI пометила репозиторий openai/skills устаревшим; наша копия зафиксирована на одном из его коммитов, а новой версии этого скилла в openai/plugins на ноябрь 2026 года нет. В плагине data-analytics есть скилл jupyter-notebooks, но он другой — для аналитических ноутбуков на SQL и Python.
Чем отличается от похожих
Других скиллов для ноутбуков в каталоге нет. Ближе всего по задачам с данными Таблицы Excel (.xlsx), но он выдаёт таблицы и CSV, а не запускаемые ноутбуки.
Установка
Выполните одну команду — она сохранит SKILL.md и файлы, которые он использует, в папку скиллов агента. Claude Code и Codex подхватывают новый скилл без перезапуска; если скилл не появился, перезапустите агента.
Скилл написан на английском — агент поймёт его и ответит вам по-русски.
curl -fsSL --create-dirs -o ~/.claude/skills/jupyter-notebook/SKILL.md https://anymodel.org/en/skills/openai/jupyter-notebook/SKILL.md -o ~/.claude/skills/jupyter-notebook/LICENSE.txt https://anymodel.org/en/skills/openai/jupyter-notebook/LICENSE.txt -o ~/.claude/skills/jupyter-notebook/agents/openai.yaml https://anymodel.org/en/skills/openai/jupyter-notebook/agents/openai.yaml -o ~/.claude/skills/jupyter-notebook/assets/experiment-template.ipynb https://anymodel.org/en/skills/openai/jupyter-notebook/assets/experiment-template.ipynb -o ~/.claude/skills/jupyter-notebook/assets/jupyter-small.svg https://anymodel.org/en/skills/openai/jupyter-notebook/assets/jupyter-small.svg -o ~/.claude/skills/jupyter-notebook/assets/jupyter.png https://anymodel.org/en/skills/openai/jupyter-notebook/assets/jupyter.png -o ~/.claude/skills/jupyter-notebook/assets/tutorial-template.ipynb https://anymodel.org/en/skills/openai/jupyter-notebook/assets/tutorial-template.ipynb -o ~/.claude/skills/jupyter-notebook/references/experiment-patterns.md https://anymodel.org/en/skills/openai/jupyter-notebook/references/experiment-patterns.md -o ~/.claude/skills/jupyter-notebook/references/notebook-structure.md https://anymodel.org/en/skills/openai/jupyter-notebook/references/notebook-structure.md -o ~/.claude/skills/jupyter-notebook/references/quality-checklist.md https://anymodel.org/en/skills/openai/jupyter-notebook/references/quality-checklist.md -o ~/.claude/skills/jupyter-notebook/references/tutorial-patterns.md https://anymodel.org/en/skills/openai/jupyter-notebook/references/tutorial-patterns.md -o ~/.claude/skills/jupyter-notebook/scripts/new_notebook.py https://anymodel.org/en/skills/openai/jupyter-notebook/scripts/new_notebook.py
curl -fsSL --create-dirs -o ~/.agents/skills/jupyter-notebook/SKILL.md https://anymodel.org/en/skills/openai/jupyter-notebook/SKILL.md -o ~/.agents/skills/jupyter-notebook/LICENSE.txt https://anymodel.org/en/skills/openai/jupyter-notebook/LICENSE.txt -o ~/.agents/skills/jupyter-notebook/agents/openai.yaml https://anymodel.org/en/skills/openai/jupyter-notebook/agents/openai.yaml -o ~/.agents/skills/jupyter-notebook/assets/experiment-template.ipynb https://anymodel.org/en/skills/openai/jupyter-notebook/assets/experiment-template.ipynb -o ~/.agents/skills/jupyter-notebook/assets/jupyter-small.svg https://anymodel.org/en/skills/openai/jupyter-notebook/assets/jupyter-small.svg -o ~/.agents/skills/jupyter-notebook/assets/jupyter.png https://anymodel.org/en/skills/openai/jupyter-notebook/assets/jupyter.png -o ~/.agents/skills/jupyter-notebook/assets/tutorial-template.ipynb https://anymodel.org/en/skills/openai/jupyter-notebook/assets/tutorial-template.ipynb -o ~/.agents/skills/jupyter-notebook/references/experiment-patterns.md https://anymodel.org/en/skills/openai/jupyter-notebook/references/experiment-patterns.md -o ~/.agents/skills/jupyter-notebook/references/notebook-structure.md https://anymodel.org/en/skills/openai/jupyter-notebook/references/notebook-structure.md -o ~/.agents/skills/jupyter-notebook/references/quality-checklist.md https://anymodel.org/en/skills/openai/jupyter-notebook/references/quality-checklist.md -o ~/.agents/skills/jupyter-notebook/references/tutorial-patterns.md https://anymodel.org/en/skills/openai/jupyter-notebook/references/tutorial-patterns.md -o ~/.agents/skills/jupyter-notebook/scripts/new_notebook.py https://anymodel.org/en/skills/openai/jupyter-notebook/scripts/new_notebook.py
foreach ($f in 'SKILL.md','LICENSE.txt','agents/openai.yaml','assets/experiment-template.ipynb','assets/jupyter-small.svg','assets/jupyter.png','assets/tutorial-template.ipynb','references/experiment-patterns.md','references/notebook-structure.md','references/quality-checklist.md','references/tutorial-patterns.md','scripts/new_notebook.py') { $p = Join-Path "$HOME\.claude\skills\jupyter-notebook" $f; New-Item -ItemType Directory -Force (Split-Path $p) | Out-Null; Invoke-WebRequest "https://anymodel.org/en/skills/openai/jupyter-notebook/$f" -UseBasicParsing -OutFile $p }foreach ($f in 'SKILL.md','LICENSE.txt','agents/openai.yaml','assets/experiment-template.ipynb','assets/jupyter-small.svg','assets/jupyter.png','assets/tutorial-template.ipynb','references/experiment-patterns.md','references/notebook-structure.md','references/quality-checklist.md','references/tutorial-patterns.md','scripts/new_notebook.py') { $p = Join-Path "$HOME\.agents\skills\jupyter-notebook" $f; New-Item -ItemType Directory -Force (Split-Path $p) | Out-Null; Invoke-WebRequest "https://anymodel.org/en/skills/openai/jupyter-notebook/$f" -UseBasicParsing -OutFile $p }Другой агент: сохраните файл в его папку скиллов или дайте ему ссылку на файл: https://anymodel.org/en/skills/openai/jupyter-notebook/SKILL.md
SKILL.md
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
.ipynbnotebook 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)
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
Lock the intent. Identify the notebook kind:
experimentortutorial. Capture the objective, audience, and what "done" looks like.Scaffold from the template. Use the helper script to avoid hand-authoring raw notebook JSON.
uv run --python 3.12 python "$JUPYTER_NOTEBOOK_CLI" \
--kind experiment \
--title "Compare prompt variants" \
--out output/jupyter-notebook/compare-prompt-variants.ipynb
uv run --python 3.12 python "$JUPYTER_NOTEBOOK_CLI" \
--kind tutorial \
--title "Intro to embeddings" \
--out output/jupyter-notebook/intro-to-embeddings.ipynb
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.
Apply the right pattern. For experiments, follow
references/experiment-patterns.md. For tutorials, followreferences/tutorial-patterns.md.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.mdfirst.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.ipynbandassets/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)
Temp and output conventions
- Use
tmp/jupyter-notebook/for intermediate files; delete when done. - Write final artifacts under
output/jupyter-notebook/when working in this repo. - Use stable, descriptive filenames (for example,
ablation-temperature.ipynb).
Dependencies (install only when needed)
Prefer uv for dependency management.
Optional Python packages for local notebook execution:
uv pip install jupyterlab ipykernel
The bundled scaffold script uses only the Python standard library and does not require extra dependencies.
Environment
No required environment variables.
Reference map
references/experiment-patterns.md: experiment structure and heuristics.references/tutorial-patterns.md: tutorial structure and teaching flow.references/notebook-structure.md: notebook JSON shape and safe editing rules.references/quality-checklist.md: final validation checklist.
Подключить через AnyModel API
Скилл работает на той модели, которую использует агент. Подключите Claude Code, Codex или Cursor к AnyModel и запускайте его на Claude, GPT, Gemini и других моделях по одному ключу — оплата за токены, без подписки.
AnyModel