Python Notebook Sample Builder
Custom agent for building Python Notebooks in VS Code that demonstrate Azure and AI features
- Type
- Subagent
- Repository
- github/awesome-copilot
- GitHub stars
- 39.4k
- License
- MIT
- Repo last updated
- Sep 27, 2026
- Source file
- agents/python-notebook-sample-builder.agent.md
What Python Notebook Sample Builder is
Python Notebook Sample Builder is a subagent published in the github/awesome-copilot repository on GitHub, which has about 39.4k stars. The repository describes itself as: “Community-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot.”
A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.
Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Python Notebook Sample Builder and get back a compact result.
How to install Python Notebook Sample Builder
Claude Code
- Download python-notebook-sample-builder.agent.md from the repository.
- Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
- Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Claude Cowork
- Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
- Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from agents/python-notebook-sample-builder.agent.md, shared under the repository's MIT license. Read the full file on GitHub.
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
- Understand the ask. Read what the user wants demonstrated. The user's description is the master context.
- 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.
- Match existing style. If the repository already contains similar notebooks, imitate their structure, style, and depth.
- Prototype in the terminal. Run every code snippet before placing it in a notebook cell. Fix errors immediately.
- 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
- 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.
Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is Python Notebook Sample Builder?
Python Notebook Sample Builder is a subagent for Claude Code and Claude Cowork from the github/awesome-copilot repository on GitHub. Custom agent for building Python Notebooks in VS Code that demonstrate Azure and AI features
How do I install Python Notebook Sample Builder in Claude Code?
Download python-notebook-sample-builder.agent.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Can I use Python Notebook Sample Builder in Claude Cowork?
Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
Is Python Notebook Sample Builder safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- Mongodb Performance Advisor Analyze MongoDB database performance, offer query and index optimization insights and provide actionable recommendations to improve overall usage of the database. Subagent · github/awesome-copilot
- Napkin Visual whiteboard collaboration for Copilot CLI. Opens an interactive whiteboard in your browser where you can draw, sketch, and add… Plugin · github/awesome-copilot
- .NET Upgrade Perform janitorial tasks on C#/.NET code including cleanup, modernization, and tech debt remediation. Subagent · github/awesome-copilot
- Next.js Expert Expert Next.js 16 developer specializing in App Router, Server Components, Cache Components, Turbopack, and modern React patterns with TypeScript Subagent · github/awesome-copilot
- QA Meticulous QA subagent for test planning, bug hunting, edge-case analysis, and implementation verification. Subagent · github/awesome-copilot
- Python MCP Server Expert Expert assistant for developing Model Context Protocol (MCP) servers in Python Subagent · github/awesome-copilot
- Reepl Linkedin AI-powered LinkedIn content creation, scheduling, and analytics agent. Create posts, carousels, and manage your LinkedIn presence with GitHub Copilot. Subagent · github/awesome-copilot
- Prompt Engineer A specialized chat mode for analyzing and improving prompts. Every user input is treated as a prompt to be improved. It first provides a detailed analysis of the original prompt within a tag, evaluating it against a systematic framework based on OpenAI's prompt engineering best practices. Following the analysis, it generates a new, improved prompt. Subagent · github/awesome-copilot