jupyter-notebook
यह क्या करती है
यह स्किल Jupyter notebook बनाती और साफ़ करती है। जो लोग डेटा प्रयोग करते हैं या ऐसे ट्यूटोरियल लिखते हैं जिन्हें दूसरे पढ़ें और दोबारा चलाएँ, उनके लिए यह है।
कब इस्तेमाल करें
- ✓जब आपको किसी प्रयोग या डेटा की खोज के लिए नई notebook चाहिए।
- ✓जब आप कच्चे नोट्स या स्क्रिप्ट को साफ़, चरण-दर-चरण notebook में बदलना चाहें।
- ✓जब किसी पुरानी notebook को साफ़ करना हो ताकि दूसरे उसे पढ़ और दोबारा चला सकें।
Skill का लिंक
https://github.com/microsoft/ai-agents-for-beginners/blob/main/.agents/skills/jupyter-notebook/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“हमारे बिक्री डेटा की खोज और एक परिकल्पना जाँचने के लिए एक साफ़ Jupyter notebook बनाइए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट एक टेम्पलेट चुनता है, experiment या tutorial, और एक सहायक स्क्रिप्ट से शुरुआती notebook बनाता है। फिर वह notebook को आपकी सामग्री से भरता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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.
अक्सर पूछे जाने वाले सवाल
experiment और tutorial में क्या अंतर है?
experiment किसी विचार को खोजने और परखने के लिए है। tutorial किसी को चरण-दर-चरण सिखाने के लिए है।
क्या यह मेरी पहले से मौजूद notebooks बदल सकती है?
हाँ। यह मौजूदा notebook को सुधार सकती है, ताकि वह और साफ़ और दोबारा चलाने में आसान हो।
क्या मुझे notebook फ़ाइलें हाथ से लिखनी होंगी?
नहीं। एक सहायक स्क्रिप्ट शुरुआती notebook बनाती है, इसलिए फ़ाइल का ढाँचा सही रहता है।
जानकारी
लेखक का मूल विवरण
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.
लोकप्रियता
- GitHub स्टार
- 79k
- रैंकिंग में स्थान
- #1725
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
azure-openai-to-responses
79kयह आपके एजेंट को Azure OpenAI Chat Completions इस्तेमाल करने वाले Python ऐप को नए Responses API पर, चरण-दर-चरण ले जाने में मदद करती है।
deploying-scalable-agents
79kयह आपके एजेंट को काम करने वाले AI एजेंट को Microsoft Foundry पर स्केलेबल और निगरानी वाले प्रोडक्शन सेटअप में ले जाने में मदद करती है।
local-ai-agents
79kसिखाती है कि स्थानीय मॉडल और टूल्स से अपने कंप्यूटर पर पूरी तरह चलने वाले AI सहायक कैसे बनाएँ, बिना क्लाउड की ज़रूरत के।
मिलती-जुलती skills
gitcrawl
394kयह आपके एजेंट को GitHub issues और pull requests के सेव आर्काइव में खोजने, मिलते-जुलते मामलों को समूह में रखने और लाइव स्थिति जांचने देती है।
slacrawl
394kयह आपके एजेंट को स्थानीय Slack आर्काइव में संदेश खोजने और गिनने, उसकी ताज़गी जांचने और ज़रूरत पड़ने पर उसे ताज़ा करने देती है।
goplaces
394kयह आपके एजेंट को Google Places से जगहें खोजने, उनका विवरण और समीक्षाएं पाने, और जगह के नाम हल करने में मदद करती है, स्क्रिप्ट के लिए JSON आउटपुट के साथ।