跳到主要内容

jupyter-notebook 精选

Използвайте, когато потребителят иска да създаде, да изгради основна

在 GitHub 打开

安装方式

cp -r translations/bg/.agents/skills/jupyter-notebook ~/.claude/skills/jupyter-notebook-3

把该 skill 目录放进客户端 skills 目录。不同客户端的目录可能不同,Claude Code 默认是 ~/.claude/skills/

整仓一次性获取:git clone --depth 1 https://github.com/microsoft/ai-agents-for-beginners.git

依赖与权限

  • 无需 API Key
  • 需要联网访问外部服务
  • 依赖外部命令:python pip uv
  • 以上为按正文与 frontmatter 自动推断的信号,仅供参考;安装前建议先阅读原文。

SKILL.md 正文

来源 microsoft/ai-agents-for-beginners@4c9a275 · 许可 MIT · 内容未修改

Умение за Jupyter Notebook

Създавайте чисти, възпроизводими Jupyter бележници за два основни режима:

  • Експерименти и изследователски анализ
  • Уроци и ръководства, ориентирани към обучение

Предпочитайте вградените шаблони и помощния скрипт за последователна структура и по-малко грешки в JSON.

Кога да използвате

  • Създайте нов .ipynb бележник от нулата.
  • Конвертирайте неполни бележки или скриптове в структуриран бележник.
  • Рефакторирайте съществуващ бележник, за да бъде по-възпроизводим и лесен за преглед.
  • Създавайте експерименти или уроци, които ще бъдат прочетени или преизпълнени от други хора.

Дърво на решенията

  • Ако заявката е изследователска, аналитична или хипотетично-ориентирана, изберете experiment.
  • Ако заявката е инструктивна, стъпка по стъпка или насочена към конкретна аудитория, изберете tutorial.
  • Ако редактирате съществуващ бележник, третирайте го като рефакториране: запазете намерението и подобрете структурата.

Път на умението (за настройка веднъж)

export CODEX_HOME="${CODEX_HOME:-$HOME/.codex}"
export JUPYTER_NOTEBOOK_CLI="$CODEX_HOME/skills/jupyter-notebook/scripts/new_notebook.py"

Потребителските умения се инсталират под $CODEX_HOME/skills (по подразбиране: ~/.codex/skills).

Работен процес

  1. Lock the intent.

Identify the notebook kind: experiment or tutorial.

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

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

  1. Apply the right pattern.

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

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

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

  1. 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 и assets/tutorial-template.ipynb.
  • Помощният скрипт зарежда шаблон, обновява заглавната клетка и записва бележник.

Script path:

  • $JUPYTER_NOTEBOOK_CLI (installed default: $CODEX_HOME/skills/jupyter-notebook/scripts/new_notebook.py)

Конвенции за временни и изходни файлове

  • Използвайте tmp/jupyter-notebook/ за междинни файлове; изтрийте след приключване.
  • Записвайте финалните артефакти под output/jupyter-notebook/, когато работите в това repo.
  • Използвайте стабилни, описателни имена на файлове (например, ablation-temperature.ipynb).

Зависимости (инсталирайте само при необходимост)

Предпочитайте uv за управление на зависимости.

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.

Среда

Не са необходими променливи на средата.

Справочна карта

  • references/experiment-patterns.md: структура на експеримента и евристики.
  • references/tutorial-patterns.md: структура на урока и поток на обучение.
  • references/notebook-structure.md: формат на notebook JSON и правила за безопасно редактиране.
  • references/quality-checklist.md: контролен списък за финална проверка.

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

Отказ от отговорност:

Този документ е преведен с помощта на услуга за превод с изкуствен интелект Co-op Translator. Въпреки че се стремим към точност, имайте предвид, че автоматизираните преводи могат да съдържат грешки или неточности. Оригиналният документ на оригиналния език трябва да се счита за авторитетен източник. За критична информация препоръчваме професионален превод от квалифициран човешки преводач. Не носим отговорност за каквито и да е недоразумения или погрешни тълкувания, произтичащи от използването на този превод.

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

质量与来源

所属仓库
microsoft/ai-agents-for-beginners
仓库星标
7.7 万
最近更新
今天
采集时间
今天
commit
4c9a27595226
内容指纹
sha256:cff174c675f66bc
文件路径
translations/bg/.agents/skills/jupyter-notebook/SKILL.md

同仓库其它 Skill

查看全部 24 个
azure-openai-to-responses
Migrate Python apps from Azure OpenAI Chat Completions to the Responses API. Covers AzureOpenAI/AsyncAzureOpenAI client migration to the v1 endpoint, streaming, tools, structured output, multi-turn, EntraID auth, and model compatibility checks. Python-focused, Azure OpenAI-specific. USE FOR: migrate to responses API, switch from chat completions, openai responses, upgrade openai SDK, responses API migration, move from completions to responses, gpt-5 migration, azure openai python migration, chat completions to responses, AzureOpenAI to OpenAI client, python azure openai upgrade. DO NOT USE FOR: building new apps from scratch (start with responses directly), Node/TypeScript/C#/Java/Go migrations (this skill is Python-only), Azure infrastructure setup (use azure-prepare), deploying models (use microsoft-foundry).
精选 microsoft/ai-agents-for-beginners 7.7 万 原文
Codex CLIMCP 客户端
deploying-scalable-agents
Take a working agent prototype to a scalable, observable production deployment on Microsoft Foundry. Covers deployment patterns (client-hosted, hosted agents, agent workflows), the agent lifecycle, model routing, response caching, evaluation gates, human-in-the-loop approval, observability with OpenTelemetry, cost optimisation, and smoke-testing deployed agents with the AI Smoke Test action. Based on Lesson 16 of AI Agents for Beginners. USE FOR: deploy an agent to production, scale an agent, Microsoft Foundry hosted agent, Foundry Agent Service, model routing, response caching, evaluation gate, release gate, human approval workflow, agent observability, agent tracing, agent cost optimisation, smoke test a hosted agent, production customer support agent. DO NOT USE FOR: building your first agent (start with Lesson 01), running agents locally on-device (use local-ai-agents / Lesson 17), Azure infrastructure provisioning unrelated to agents, non-Foundry deployment targets.
精选 microsoft/ai-agents-for-beginners 7.7 万 原文
Codex CLIMCP 客户端
jupyter-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.
精选 microsoft/ai-agents-for-beginners 7.7 万 原文
Codex CLIMCP 客户端
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the privacy/cost/offline trade-offs. Based on Lesson 17 of AI Agents for Beginners. USE FOR: run an agent locally, offline agent, on-device agent, Foundry Local, Qwen function calling, local tool calling, local RAG, Chroma vector database, local MCP server, privacy-preserving agent, hybrid local and cloud agent, small language model agent, engineering assistant on my machine. DO NOT USE FOR: deploying agents to the cloud at scale (use deploying-scalable-agents / Lesson 16), building your first agent concept (Lesson 01), Foundry (cloud) hosted agents, GPU cluster / server-side inference provisioning.
精选 microsoft/ai-agents-for-beginners 7.7 万 原文
Codex CLIMCP 客户端
microsoft-docs
Query official Microsoft documentation to find concepts, tutorials, and code examples across Azure, .NET, Agent Framework, Aspire, VS Code, GitHub, and more. Uses Microsoft Learn MCP as the default, with Context7 and Aspire MCP for content that lives outside learn.microsoft.com.
精选 microsoft/ai-agents-for-beginners 7.7 万 原文
Codex CLIMCP 客户端
testing-course-samples
Use when asked to validate, test, smoke-test, or run the course's notebook and code samples against a live Microsoft Foundry / Azure OpenAI configuration. Covers environment setup (.env, az login, packages), the scripts/validate-notebooks.ps1 runner, interpreting PASS/FAIL results, and which lessons need extra resources (Azure AI Search, GitHub MCP, Foundry Local, Playwright).
精选 microsoft/ai-agents-for-beginners 7.7 万 原文
Codex CLIMCP 客户端

相似 Skill

更多「编码」
access
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed, or change policy for the Discord channel.
精选 anthropics/claude-plugins-official 3.8 万 原文
Claude CodeMCP 客户端
configure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how do I set this up" or "who can reach me," or wants to check channel status.
精选 anthropics/claude-plugins-official 3.8 万 原文
Claude CodeMCP 客户端
access
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed, or change policy for the iMessage channel.
精选 anthropics/claude-plugins-official 3.8 万 原文
Claude CodeMCP 客户端
configure
Check iMessage channel setup and review access policy. Use when the user asks to configure iMessage, asks "how do I set this up" or "who can reach me," or wants to know why texts aren't reaching the assistant.
精选 anthropics/claude-plugins-official 3.8 万 原文
Claude CodeMCP 客户端
access
Manage Telegram channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed, or change policy for the Telegram channel.
精选 anthropics/claude-plugins-official 3.8 万 原文
Claude CodeMCP 客户端
configure
Set up the Telegram channel — save the bot token and review access policy. Use when the user pastes a Telegram bot token, asks to configure Telegram, asks "how do I set this up" or "who can reach me," or wants to check channel status.
精选 anthropics/claude-plugins-official 3.8 万 原文
Claude CodeMCP 客户端