agentleFS
MicrosoftKnown publishermicrosoft/vscode-jupyter/.github/copilot-instructions.md

vscode-jupyter

Copilot instructions1.5k starsChanged 16 months agoMITView on GitHub

This file contains key information to help AI assistants work more efficiently with the VS Code Jupyter codebase. Read .github/typescript-instructions.md for detailed TypeScript development steps.

Trending

Quiet this year.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/vscode-jupyter repository that our weekly crawl found: only 14 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about microsoft/vscode-jupyter

The biggest 5 of 14 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 14

Talked about on GitHub (14 times).

On GitHub · 14

9 more on GitHub

The file

We split this copilot-instructions.md into the rules it gives an agent

10 rules. About 0 are common, 4 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Run npm run format-fix before committing any changes to ensure proper code formatting

    line 10
  2. Very specific:

    Read .github/typescript-instructions.md for detailed TypeScript development steps.

    line 18
  3. Distinctive:

    Look for existing test patterns before creating new structures

    line 34
  4. Very specific:

    Use l10n.t() for user facing strings

    line 37
  5. Very specific:

    Use typed error classes in src/platform/errors/

    line 38
  6. Very specific:

    Use ILogger service, not console.log

    line 39
  7. Distinctive:

    Prefer async/await, handle cancellation with CancellationToken

    line 44
  8. Distinctive:

    Use lint/format tools

    line 45
  9. Distinctive:

    IMPORTANT: Before modifying any code in the directories listed below, you MUST first read the corresponding instruction file to understand …

    line 92
  10. Very specific:

    For AI/Copilot: Always use the read_file tool to read the relevant instruction file(s) before analyzing, modifying, or creating code in …

    line 116

≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

Jupyter Extension - Copilot Instructions

This file contains key information to help AI assistants work more efficiently with the VS Code Jupyter codebase.

Required Before Each Commit

  • Run npm run format-fix before committing any changes to ensure proper code formatting

Development Flow

  • Compile: npm run compile (required before testing code changes)
  • Run all unit tests: npm run test:unittests
  • Run specific unit tests: npm run test:unittests -- --grep "pattern"
  • Linting: npm run lint to check for linter issues

Read .github/typescript-instructions.md for detailed TypeScript development steps.

Coding Standards

Platform Implementation

  • Desktop (*.node.ts): Full file system access, Python environments
  • Web (*.web.ts): Browser-compatible APIs
  • Common (*.ts): Shared cross-platform logic

Dependency Injection

  • Inject interfaces, not concrete classes
  • Avoid circular dependencies

Testing

  • Unit tests in *.unit.test.ts
  • Integration tests in *.test.ts (not *.unit.test.ts)
  • Look for existing test patterns before creating new structures

User Messages

  • Use l10n.t() for user facing strings
  • Use typed error classes in src/platform/errors/
  • Use ILogger service, not console.log
  • Preserve error details, scrub PII

Code Quality

  • Include Microsoft copyright header
  • Prefer async/await, handle cancellation with CancellationToken
  • Use lint/format tools

Project Architecture

Core Structure

build/                              # Build scripts and CI/CD tools
pythonFiles/                        # Python scripts for integration and helper functions
src/                                # Source code for the extension
├── platform/                       # Cross-platform abstractions
│   ├── common/                     # Shared utilities and interfaces
│   ├── ioc/                        # Dependency injection container
│   ├── logging/                    # Logging infrastructure
│   ├── telemetry/                  # Usage analytics
│   ├── activation/                 # Extension lifecycle management
│   ├── interpreter/                # Python environment discovery
│   ├── pythonEnvironments/         # Python environment management
│   └── webviews/                   # WebView communication layer
├── kernels/                        # Kernel management and execution
│   ├── common/                     # Shared kernel interfaces
│   ├── jupyter/                    # Jupyter protocol implementation
│   ├── raw/                        # Direct kernel process management
│   ├── execution/                  # Cell execution logic
│   ├── variables/                  # Variable inspection and data viewer
│   └── types.ts                    # Kernel-related type definitions
├── notebooks/                      # Notebook editing and management
│   ├── controllers/                # VS Code notebook controllers
│   │   └── ipywidgets/             # IPython widgets (interactive Notebook outputs)
│   ├── export/                     # Export to HTML, PDF, etc.
│   ├── debugger/                   # Notebook debugging support
│   ├── languages/                  # Language-specific features
│   └── outputs/                    # Cell output rendering
├── interactive-window/             # Python Interactive window (REPL)
│   ├── commands/                   # Interactive window commands
│   ├── debugger/                   # Interactive debugging
│   └── editor-integration/         # Integration with Python files
├── standalone/                     # Standalone features
├── webviews/                       # Rich UI components
│   ├── extension-side/             # Extension-side webview logic
│   │   └── ipywidgets/             # IPython widgets (interactive Notebook outputs) in extension-side
│   └── webview-side/               # Frontend React/HTML components
│       └── ipywidgets/             # IPython widgets (interactive Notebook outputs) in webview
└── test/                           # Integration, unit and end-to-end tests

Component-Specific Instructions

IMPORTANT: Before modifying any code in the directories listed below, you MUST first read the corresponding instruction file to understand the specific conventions, patterns, and architectural requirements for that component.

Each component has detailed guidelines that cover:

  • Architecture patterns and design principles
  • Code organization and file naming conventions
  • Testing requirements and patterns
  • Dependency injection usage
  • Error handling approaches
  • Component-specific best practices

Required Reading by Directory

Directory/ComponentInstruction FileWhen to Read
src/platform/**.github/instructions/platform.instructions.mdBefore working with cross-platform abstractions, utilities, or core services
src/kernels/**.github/instructions/kernel.instructions.mdBefore modifying kernel management, execution, or communication logic
src/kernels/jupyter/**.github/instructions/kernel-jupyter.instructions.mdBefore working with Jupyter protocol implementation or Jupyter-specific features
src/notebooks/**.github/instructions/notebooks.instructions.mdBefore modifying notebook controllers, editing, or management features
src/interactive-window/**.github/instructions/interactiveWindow.instructions.mdBefore working with Python Interactive window (REPL) functionality
src/standalone/**.github/instructions/standalone.instructions.mdBefore modifying standalone mode or isolated execution features
src/notebooks/controllers/ipywidgets/**.github/instructions/ipywidgets.instructions.mdBefore working with IPython widget support
src/webviews/extension-side/ipywidgets/**.github/instructions/ipywidgets.instructions.mdBefore modifying extension-side widget communication
src/webviews/webview-side/ipywidgets/**.github/instructions/ipywidgets.instructions.mdBefore working with frontend widget rendering

For AI/Copilot: Always use the read_file tool to read the relevant instruction file(s) before analyzing, modifying, or creating code in these directories. This ensures adherence to component-specific patterns and prevents architectural violations.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.