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
Who's talking about microsoft/vscode-jupyter
- microsoft/vscode-python“TOC for .py files with percent markup”GitHub · Sep 1, 2021 · 112 reactions
- microsoft/vscode“Support playing of mono/stereo np.array waveform in cell output”GitHub · Jun 2, 2022 · 55 reactions
- microsoft/vscode“Notebook: Add "Run selection" command”GitHub · Dec 12, 2023 · 54 reactions
- microsoft/vscode“Enable support for notebooks at the "select language" mode”GitHub · Sep 7, 2023 · 35 reactions
- microsoft/vscode“Settings for controlling if outputs should be saved to disk ”GitHub · May 25, 2021 · 34 reactions
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
- Sep 1, 2021TOC for .py files with percent markup — microsoft/vscode-python112 reactions · 16 comments
- Jun 2, 2022Support playing of mono/stereo np.array waveform in cell output — microsoft/vscode55 reactions · 4 comments
- Dec 12, 2023Notebook: Add "Run selection" command — microsoft/vscode54 reactions · 11 comments
- Sep 7, 2023Enable support for notebooks at the "select language" mode — microsoft/vscode35 reactions · 2 comments
- May 25, 2021Settings for controlling if outputs should be saved to disk — microsoft/vscode34 reactions · 20 comments
9 more on GitHub
- Aug 13, 2023Pylance is not work for jupyter notebook in VScode — microsoft/pylance-release27 reactions · 32 comments
- May 6, 2021Independent font setting for notebook output — microsoft/vscode24 reactions · 14 comments
- Jun 3, 2021Using VSCode insiders: Jupyter Notebook Markdown Cell does not support \newcommand in Katex. — microsoft/vscode23 reactions · 12 comments
- Aug 31, 2021Variables Pane for Python Console — microsoft/vscode-python18 reactions · 8 comments
- Feb 10, 2021Notebook text output should support the word wrap setting — microsoft/vscode18 reactions · 4 comments
- Jun 3, 2021Global CSS is not applied between notebook markdown cells — microsoft/vscode17 reactions · 9 comments
- Aug 27, 2023Render nested progress bars in the same container in IPython. — tqdm/tqdm16 reactions · 13 comments
- May 9, 2022Support formatting of entire ipynb notebook on save — microsoft/vscode14 reactions · 2 comments
- Apr 12, 2021Pressing `esc` with a notebook cell in command mode should preserve current cell selection — microsoft/vscode13 reactions · 10 comments
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
- Very specific: line 10
Run npm run format-fix before committing any changes to ensure proper code formatting
- Very specific: line 18
Read .github/typescript-instructions.md for detailed TypeScript development steps.
- Distinctive: line 34
Look for existing test patterns before creating new structures
- Very specific: line 37
Use l10n.t() for user facing strings
- Very specific: line 38
Use typed error classes in src/platform/errors/
- Very specific: line 39
Use ILogger service, not console.log
- Distinctive: line 44
Prefer async/await, handle cancellation with CancellationToken
- Distinctive: line 45
Use lint/format tools
- Distinctive: line 92
IMPORTANT: Before modifying any code in the directories listed below, you MUST first read the corresponding instruction file to understand …
- Very specific: line 116
For AI/Copilot: Always use the read_file tool to read the relevant instruction file(s) before analyzing, modifying, or creating code in …
≈ “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.
Files
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-fixbefore 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 lintto 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
ILoggerservice, 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 testsComponent-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/Component | Instruction File | When to Read |
src/platform/** | .github/instructions/platform.instructions.md | Before working with cross-platform abstractions, utilities, or core services |
src/kernels/** | .github/instructions/kernel.instructions.md | Before modifying kernel management, execution, or communication logic |
src/kernels/jupyter/** | .github/instructions/kernel-jupyter.instructions.md | Before working with Jupyter protocol implementation or Jupyter-specific features |
src/notebooks/** | .github/instructions/notebooks.instructions.md | Before modifying notebook controllers, editing, or management features |
src/interactive-window/** | .github/instructions/interactiveWindow.instructions.md | Before working with Python Interactive window (REPL) functionality |
src/standalone/** | .github/instructions/standalone.instructions.md | Before modifying standalone mode or isolated execution features |
src/notebooks/controllers/ipywidgets/** | .github/instructions/ipywidgets.instructions.md | Before working with IPython widget support |
src/webviews/extension-side/ipywidgets/** | .github/instructions/ipywidgets.instructions.md | Before modifying extension-side widget communication |
src/webviews/webview-side/ipywidgets/** | .github/instructions/ipywidgets.instructions.md | Before 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.
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
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.

