Skip to main content
subagent GitHub Copilot official · GitHub

Python Notebook Sample Builder — GitHub Copilot subagent: install

Builds interactive Jupyter notebooks in VS Code to demonstrate Azure and AI features, testing every snippet in the terminal first.

Install into GitHub Copilot · Manually: put the files in place All methods and platforms ↓
.github/agents/python-notebook-sample-builder.agent.md
Open on GitHub

What Python Notebook Sample Builder does

This subagent builds hands-on Python notebooks in VS Code to demonstrate Azure services and AI capabilities. It researches public documentation using Microsoft Learn tools. Before placing any code into a notebook cell, the agent prototypes and runs it in the terminal to verify the SDK works without errors.

The agent structures notebooks with minimal text, single-concept code cells, and rich visual output. It renders tabular data via pandas and charts with matplotlib. Because the workflow assumes an active devcontainer, dependencies install directly without local virtual environments.

Install this subagent when you need clean, verified tutorials for public Azure SDKs. If your workflow relies on private internal packages or isolated virtual environments, this agent will not fit.

What it helps with

  • generate interactive Jupyter notebooks for Azure and AI SDKs
  • verify API calls in the terminal before inserting them into cells
  • render tabular results and charts using pandas and matplotlib
  • structure hands-on tutorials with setup instructions and short explanations

Example prompts for the agent

  • Build a notebook demonstrating Azure AI Search with sample queries and pandas output.
  • Create an interactive tutorial for Azure OpenAI text embeddings with matplotlib plots.
  • Generate a Jupyter notebook showing basic data processing with the Azure SDK.

How to install Python Notebook Sample Builder

Manually: put the files in place

.github/agents/python-notebook-sample-builder.agent.md

From the same set554

The whole set →
git-commit official github This skill reviews Git changes, stages related files, and creates Conventional Commits. Use it when you want an agent to make one commit or split work into separate commits. GitHub Copilot 47,165installs excalidraw-diagram-generator official github Turn a plain-language description into an Excalidraw diagram. Useful for mapping processes, system structure, and relationships between entities. GitHub Copilot 31,639installs multi-stage-dockerfile official github This skill guides GitHub Copilot in writing multi-stage Dockerfiles for different languages and frameworks. Use it when the final runtime image should contain fewer build dependencies. GitHub Copilot 29,688installs documentation-writer official github Skill that turns the agent into a technical writer following the Diátaxis framework: tutorials, how-to guides, reference, and explanation. Proposes structure before writing. GitHub Copilot 27,757installs prd official github Turns a feature idea into a structured PRD with user stories, technical requirements, and risks. Use it when planning a software feature or an AI-powered one. GitHub Copilot 24,035installs refactor official github This skill reshapes existing code without changing its external behavior. Use it for gradual cleanup of large functions, duplication, weak types, and code smells. GitHub Copilot 22,321installs java-springboot official github Gives GitHub Copilot Spring Boot development practices, from project layout to tests and security. Use it when writing or reviewing Java application code. GitHub Copilot 21,272installs create-readme official github This skill reviews a project and creates a structured README.md. Use it when the repository needs clear documentation based on its actual files and code. GitHub Copilot 19,081installs

Similar

machine-learning-engineer VoltAgent Community A subagent for deploying, optimizing, and serving ML models in production. Use it for inference infrastructure, scaling, and model monitoring. Claude Code 431installs mcp-developer VoltAgent Community Builds, tests, and optimizes Model Context Protocol (MCP) servers and clients. Connects AI models to external tools, databases, and custom services. Claude Code 366installs knowledge-synthesizer VoltAgent Community Finds recurring errors and workflow patterns in logs and transcripts, then records evidence-linked findings. Use it when other agents or people need conclusions they can check against the source files. Claude Code 276installs prompt-engineer VoltAgent Community This subagent designs, tests, and improves prompts for LLM production systems. Use it when prompts need evaluation, metrics, or cost tracking. Claude Code 16,078installs prompt-engineer Seth Hobson This subagent designs and tests prompts for LLM features, agent workflows, and system instructions. Use it when prompt structure, safety, or evaluation needs deliberate work. Claude Code CX Codex Cursor 16,078installs ai-engineer VoltAgent Community This subagent helps design AI systems, choose models, build training pipelines, and prepare deployment. Use it when work spans research through production. Claude Code 7,687installs ai-engineer Seth Hobson This subagent designs LLM applications, RAG systems, and AI agents. Use it when a project needs vector search, model orchestration, or multimodal AI. Claude Code CX Codex Cursor 7,687installs search-specialist Seth Hobson A web research subagent that filters sources and cross-checks facts. Use it for deep research, competitive analysis, and trend work. Claude Code CX Codex Cursor 6,886installs

Questions about Python Notebook Sample Builder

How to install Python Notebook Sample Builder?

Add the agent definition file to .cursor/agents/python-notebook-sample-builder.md for Cursor or .claude/agents/python-notebook-sample-builder.md for Claude Code.

What does Python Notebook Sample Builder do?

It creates verified .ipynb files in VS Code, testing all Azure and AI code snippets in the terminal before writing markdown and code cells.

Why does this agent skip virtual environments?

It operates inside a devcontainer where dependencies are installed directly into the environment using %pip install.

Source text

python-notebook-sample-builder.agent.md · MIT
---
description: 'Custom agent for building Python Notebooks in VS Code that demonstrate Azure and AI features'
name: 'Python Notebook Sample Builder'
tools: ['vscode', 'execute', 'read', 'edit', 'search', 'web', 'mslearnmcp/*', 'agent', 'ms-python.python/getPythonEnvironmentInfo', 'ms-python.python/getPythonExecutableCommand', 'ms-python.python/installPythonPackage', 'ms-python.python/configurePythonEnvironment', 'ms-toolsai.jupyter/configureNotebook', 'ms-toolsai.jupyter/listNotebookPackages', 'ms-toolsai.jupyter/installNotebookPackages', 'todo']
---

You are a Python Notebook Sample Builder. Your goal is to create polished, interactive Python notebooks that demonstrate Azure and AI features through hands-on learning.

## Core Principles

- **Test before you write.** Never include code in a notebook that you have not run and verified in the terminal first. If something errors, troubleshoot the SDK or API until you understand the correct usage.
- **Learn by doing.** Notebooks should be interactive and engaging. Minimize walls of text. Prefer short, crisp markdown cells that set up the next code cell.
- **Visualize everything.** Use built-in notebook visualization (tables, rich output) and common data science libraries (matplotlib, pandas, seaborn) to make results tangible.
- **No internal tooling.** Avoid any internal-only APIs, endpoints, packages, or configurations. All code must work with publicly available SDKs, services, and documentation.
- **No virtual environments.** We are working inside a devcontainer. Install packages directly.

## Workflow

1. **Understand the ask.** Read what the user wants demonstrated. The user's description is the master context.
2. **Research.** Use Microsoft Learn to investigate correct API usage and find code samples. Documentation may be outdated, so always validate against the actual SDK by running code locally first.
3. **Match existing style.** If the repository already contains similar notebooks, imitate their structure, style, and depth.
4. **Prototype in the terminal.** Run every code snippet before placing it in a notebook cell. Fix errors immediately.
5. **Build the notebook.** Assemble verified code into a well-structured notebook with:
   - A title and brief intro (markdown)
   - Prerequisites / setup cell (installs, imports)
   - Logical sections that build on each other
   - Visualizations and formatted output
   - A summary or next-steps cell at the end
6. **Create a new file.** Always create a new notebook file rather than overwriting existing ones.

## Notebook Structure Guidelines

- **Title cell** — One `#` heading with a concise title. One sentence describing what the reader will learn.
- **Setup cell** — Install dependencies (`%pip install ...`) and import libraries.
- **Section cells** — Each section has a short markdown intro followed by one or more code cells. Keep markdown crisp: 2-3 sentences max per cell.
- **Visualization cells** — Use pandas DataFrames for tabular data, matplotlib/seaborn for charts. Add titles and labels.
- **Wrap-up cell** — Summarize what was covered and suggest next steps or further reading.

## Style Rules

- Use clear variable names and inline comments where the intent is not obvious.
- Prefer f-strings for string formatting.
- Keep code cells focused: one concept per cell.
- Use `display()` or rich DataFrame rendering instead of plain `print()` for tabular data.
- Add `# Section Title` comments at the top of code cells for scanability.

© github · MIT · github/awesome-copilot

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor