Jupyter notebook

From microsoft/ai-agents-for-beginners · View interactive version

Jupyter notebook is an AI agent skill from the GitHub repository microsoft/ai-agents-for-beginners. प्रयोगकर्ताले प्रयोग, अन्वेषण, वा ट्युटोरियलका लागि Jupyter नोटबुकहरू (`.ipynb`) बनाउन, ढाँचा तयार गर्न, वा सम्पादन गर्न अनुरोध गरेमा प्रयोग गर्नुहोस्; समावेश गरिएको टेम्प्लेटलाई प्राथमिकता दिनुहोस् र सफा सुरुवाती नोटबुक उत्पन्न गर्न सहायक स्क्रिप्ट `new_notebook.py` चलाउनुहोस्।

How to use this skill

Skill file

Jupyter नोटबुक सीप

Create clean, reproducible Jupyter notebooks for two primary modes:

Prefer the bundled templates and the helper script for consistent structure and fewer JSON mistakes.

कहिले प्रयोग गर्ने

निर्णय वृक्ष

सीप पथ (एक पटक सेट गर्नुहोस्)

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).

कार्यप्रवाह

  1. इरादा निश्चित गर्नुहोस्.

Identify the notebook kind: experiment or tutorial.

Capture the objective, audience, and what "done" looks like.

  1. टेम्पलेटबाट संरचना तयार गर्नुहोस्.

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
  1. नोटबुकलाई साना, चलाउन मिल्ने चरणहरूले भर्नुहोस्.

Keep each code cell focused on one step.

Add short markdown cells that explain the purpose and expected result.

ठूला, अनावश्यक आउटपुटहरूबाट बच्नुहोस् जब छोटो सारांश काम गर्छ।

  1. सही ढाँचा प्रयोग गर्नुहोस्.

For experiments, follow references/experiment-patterns.md.

For tutorials, follow references/tutorial-patterns.md.

  1. अवस्थित नोटबुकहरूमा काम गर्दा सुरक्षित रूपमा सम्पादन गर्नुहोस्.

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.

  1. परिणाम प्रमाणित गर्नुहोस्.

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.

टेम्पलेटहरू र हेल्पर स्क्रिप्ट

स्क्रिप्ट पथ:

अस्थायी र आउटपुट कन्वेन्सन

निर्भरता (आवश्यक परे मात्र स्थापना गर्नुहोस्)

uv लाई निर्भरता व्यवस्थापनका लागि प्राथमिकता दिनुहोस्.

स्थानीय नोटबुक कार्यान्वयनका लागि वैकल्पिक Python प्याकेजहरू:

uv pip install jupyterlab ipykernel

The bundled scaffold script uses only the Python standard library and does not require extra dependencies.

वातावरण

कुनै आवश्यक वातावरणीय चरहरू छैनन्।

सन्दर्भ नक्शा


<!-- CO-OP TRANSLATOR DISCLAIMER START -->

अस्वीकरण:

यो दस्तावेज AI अनुवाद सेवा Co-op Translator (https://github.com/Azure/co-op-translator) प्रयोग गरी अनुवाद गरिएको हो। हामी शुद्धताको लागि प्रयास गर्छौं, तर कृपया ध्यान दिनुहोस् कि स्वचालित अनुवादमा त्रुटि वा अशुद्धता हुन सक्छ। मूल दस्तावेजलाई यसको मूल भाषामा नै आधिकारिक स्रोत मान्नुपर्छ। महत्वपूर्ण जानकारीको लागि व्यावसायिक मानव अनुवाद सिफारिस गरिन्छ। यस अनुवादको प्रयोगबाट उत्पन्न कुनै पनि गलतफहमी वा गलत व्याख्याका लागि हामी जिम्मेवार छैनौं।

<!-- CO-OP TRANSLATOR DISCLAIMER END -->

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.