jupyter-notebook
Qué hace
Esta skill crea y ordena cuadernos de Jupyter. Es para personas que hacen experimentos con datos o escriben tutoriales que otros leerán y volverán a ejecutar.
Cuándo usarla
- ✓Cuando quieres un cuaderno nuevo para un experimento o una exploración de datos.
- ✓Cuando quieres convertir notas sueltas o un script en un cuaderno ordenado y paso a paso.
- ✓Cuando quieres ordenar un cuaderno existente para que otros puedan leerlo y volver a ejecutarlo.
Link de la skill
https://github.com/microsoft/ai-agents-for-beginners/blob/main/.agents/skills/jupyter-notebook/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Crea un cuaderno de Jupyter limpio para explorar nuestros datos de ventas y probar una hipótesis.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente elige una plantilla, de experimento o de tutorial, y usa un script auxiliar para crear un cuaderno inicial. Luego llena el cuaderno con tu contenido.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
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.
Preguntas frecuentes
¿Cuál es la diferencia entre un experimento y un tutorial?
Un experimento sirve para explorar y probar una idea. Un tutorial sirve para enseñar a alguien paso a paso.
¿Puede editar cuadernos que ya tengo?
Sí. Puede mejorar un cuaderno existente para que sea más claro y fácil de volver a ejecutar.
¿Necesito escribir los archivos de cuaderno a mano?
No. Un script auxiliar genera el cuaderno inicial, así que la estructura del archivo queda correcta.
Detalles
Descripción original del autor
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.
Popularidad
- Estrellas en GitHub
- 79 mil
- Posición en el ranking
- #1725
- Licencia
- MIT
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
azure-openai-to-responses
79 milAyuda a tu agente a migrar una app de Python de Chat Completions de Azure OpenAI a la nueva API de Responses, paso a paso.
deploying-scalable-agents
79 milAyuda a tu agente a pasar un agente de IA que ya funciona a una configuración de producción escalable y monitoreada en Microsoft Foundry.
local-ai-agents
79 milEnseña a tu agente a construir ayudantes de IA que corren por completo en tu propia computadora, con modelos y herramientas locales, sin necesidad de la nube.
Skills parecidas
gitcrawl
394 milPermite que tu agente busque en un archivo guardado de incidencias y pull requests de GitHub, agrupe duplicados y revise su estado actual en GitHub.
slacrawl
394 milPermite que tu agente busque y cuente mensajes en un archivo local de Slack, revise qué tan reciente es y lo actualice cuando haga falta.
goplaces
394 milAyuda a tu agente a buscar lugares, obtener sus detalles y reseñas, y resolver nombres de lugares usando Google Places, con salida JSON para scripts.