Použijte, když uživatel požádá o vytvoření, inicializaci nebo úpravu Jupyter notebooků (`.ipynb`) pro experimenty, průzkumy nebo návody; upřednostněte zabudované šablony a spusťte pomocný skript `new_notebook.py`, abyste vygenerovali čistý výchozí notebook.
Vytvářejte čisté, reprodukovatelné Jupyter notebooky pro dva hlavní režimy:
Upřednostněte dodané šablony a pomocný skript pro konzistentní strukturu a méně chyb v JSONu.
.ipynb notebook od začátku.experiment.tutorial.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).
Lock the intent.
Identify the notebook kind: experiment or tutorial.
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, follow references/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.md first.
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.
assets/experiment-template.ipynb a assets/tutorial-template.ipynb.Script path:
$JUPYTER_NOTEBOOK_CLI (installed default: $CODEX_HOME/skills/jupyter-notebook/scripts/new_notebook.py)tmp/jupyter-notebook/ pro mezisoubory; smažte je po dokončení.output/jupyter-notebook/ při práci v tomto repozitáři.ablation-temperature.ipynb).Preferujte uv pro správu závislostí.
Volitelné Python balíčky pro lokální spuštění notebooku:
uv pip install jupyterlab ipykernel
The bundled scaffold script uses only the Python standard library and does not require extra dependencies.
Žádné povinné proměnné prostředí.
references/experiment-patterns.md: struktura experimentu a heuristiky.references/tutorial-patterns.md: struktura tutoriálu a průběh výuky.references/notebook-structure.md: tvar JSONu notebooku a pravidla bezpečných úprav.references/quality-checklist.md: finální kontrolní seznam pro ověření.Prohlášení o vyloučení odpovědnosti: Tento dokument byl přeložen pomocí AI překladatelské služby Co-op Translator (https://github.com/Azure/co-op-translator). I když usilujeme o co nejvyšší přesnost, vezměte prosím na vědomí, že automatické překlady mohou obsahovat chyby nebo nepřesnosti. Původní dokument v jeho původním jazyce by měl být považován za rozhodující zdroj. Pro zásadní informace doporučujeme využít profesionální lidský překlad. Nejsme odpovědní za žádná nedorozumění nebo nesprávné výklady vyplývající z použití tohoto překladu.