Sponsor Suno AI Music arrow_forward
Subagent

Python Notebook Sample Builder

Custom agent for building Python Notebooks in VS Code that demonstrate Azure and AI features

Type
Subagent
GitHub stars
39.4k
License
MIT
Repo last updated
Sep 27, 2026

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

  1. Download python-notebook-sample-builder.agent.md from the repository.
  2. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
  3. 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

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

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

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.