Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问clear审计未展示

positron-notebooks正电子笔记本

Agent Skill

positron-notebooks 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

432

周安装

18

GitHub Stars

公开资料未说明

下载量

144
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:positron-notebooks(正电子笔记本)
来源仓库:https://github.com/posit-dev/positron
仓库路径:skills/positron-notebooks
安装命令:
npx skills add posit-dev/positron --skill "positron-notebooks"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add posit-dev/positron --skill "positron-notebooks"

简介

positron-notebooks 用于查找、检索和筛选相关信息,适用于数据科学与代码执行场景。

  • 可帮助快速获取笔记本相关工具或资源。
  • 通过 npx skills add posit-dev/positron --skill "positron-notebooks" 安装使用。
  • 使用前应确认其是否触发外部服务调用或文件访问权限。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Positron Notebooks Development

Purpose

Provides specialized knowledge and workflows for developing Positron Notebooks, a feature-flagged React-based notebook editor that coexists with VS Code's standard notebook experience.

When to Use This Skill

Load this skill when working on:

  • Notebook cell behavior (execution, rendering, editing)
  • Selection and focus management
  • Context key system for notebooks
  • Cell action commands and menus
  • Notebook-kernel integration
  • Output rendering and webviews
  • E2E or unit tests for notebooks
  • Debugging notebook issues

Quick Start

Validate Setup Before Starting

# Run validation script
./scripts/validate_setup.sh

Or manually check:

# Verify build daemons are running (required)
ps aux | grep -E "npm.*watch-(client|extensions)d" | grep -v grep

Enable Positron Notebooks for Testing

Add to settings.json:

{
	"positron.notebook.enabled": true,
	"workbench.editorAssociations": {
		"*.ipynb": "workbench.editor.positronNotebook"
	}
}

Restart Positron after changing feature flag.

Development Workflows

Adding a New Cell Command

  1. Register command in src/vs/workbench/contrib/positronNotebook/browser/positronNotebook.contribution.ts
  2. Add context key conditions (when-clauses)
  3. Optionally add to menu or keybinding registry
  4. Implement handler to access notebook instance and cells

See references/common-patterns.md for code examples.

Fixing a Cell Execution Bug

  1. Start debugging task in VS Code (F5)
  2. Set breakpoint in PositronNotebookInstance.ts:executeCell()
  3. Open notebook and trigger execution
  4. Check:

- Is kernel selected? - Is previous execution cancelled? - Are execution events firing? - Does runtime session exist?

See references/debugging-guide.md for detailed strategies.

Debugging Selection/Focus Issues

  1. Inspect context keys: Command Palette → "Developer: Inspect Context Keys"
  2. Check selection machine state in selectionMachine.ts
  3. Verify DOM focus with browser DevTools (document.activeElement)
  4. Add logging to selection events and state transitions

See references/debugging-guide.md for common issues and solutions.

Running Tests

# Run all notebook E2E tests
./scripts/test_notebooks.sh

# Run specific test
./scripts/test_notebooks.sh "cell execution"

# Or use Playwright directly
npx playwright test test/e2e/tests/notebook/<test-name>.test.ts --project e2e-electron --reporter list

Searching Notebook Code

# Find code patterns
./scripts/find_notebook_code.sh "executeCell"
./scripts/find_notebook_code.sh "selectionMachine"

Core Files to Know

Primary entry point:

  • src/vs/workbench/contrib/positronNotebook/browser/positronNotebook.contribution.ts - Command registration, editor resolver

Central logic:

  • src/vs/workbench/contrib/positronNotebook/browser/PositronNotebookInstance.ts - Most non-UI logic, state management

React UI:

  • src/vs/workbench/contrib/positronNotebook/browser/PositronNotebookEditor.tsx - Root component
  • src/vs/workbench/contrib/positronNotebook/browser/notebookCells/ - Cell components

State systems:

  • src/vs/workbench/contrib/positronNotebook/browser/selectionMachine.ts - Selection FSM
  • src/vs/workbench/contrib/positronNotebook/browser/ContextKeysManager.ts - Context keys

Cell models:

  • src/vs/workbench/contrib/positronNotebook/browser/PositronNotebookCells/ - Cell implementations

Key Architecture Principles

  1. Feature-flagged - Coexists with VS Code notebooks, feature flag required
  2. Observable-based - React UI driven by VS Code observables
  3. Shared infrastructure - Reuses VS Code's notebook models, kernels, execution
  4. One webview per output - Each output gets its own webview (vs single webview)
  5. Context key scoped - Cell context keys scoped to cell DOM subtree

Progressive Documentation

For detailed information, read the bundled reference docs:

  • references/architecture.md - Component details, integration points, execution flow
  • references/debugging-guide.md - Debugging strategies, common issues, testing workflows
  • references/common-patterns.md - Code examples for commands, observables, React components

Full architecture document available at: src/vs/workbench/contrib/positronNotebook/docs/positron_notebooks_architecture.md

Helper Scripts

Located in scripts/:

  • validate_setup.sh - Check build daemons and file paths
  • test_notebooks.sh - Run notebook E2E tests with optional pattern
  • find_notebook_code.sh - Search for code patterns in notebook files

Common Tasks

Task: Add execution status indicator to cell

Steps:

  1. Read references/common-patterns.md for observable patterns
  2. Add state observable to cell model
  3. Create React component consuming observable
  4. Integrate into cell component tree

Task: Fix context keys not updating

Steps:

  1. Read references/debugging-guide.md for context key issues
  2. Check ContextKeysManager.ts for key setting logic
  3. Verify scoping (cell-level keys scoped to cell DOM)
  4. Use "Inspect Context Keys" to validate

Task: Debug cell not executing

Steps:

  1. Read references/debugging-guide.md for execution debugging
  2. Use VS Code debug task (F5) with breakpoints
  3. Check kernel selection, runtime session, execution service
  4. Monitor execution state changes via log service

Task: Understand selection state machine

Steps:

  1. Read references/architecture.md for selection FSM overview
  2. Check selectionMachine.ts for states and transitions
  3. Add logging to transitions
  4. Test selection events in debugger

Important Constraints

  • Upstream compatibility: Prefer new files over modifying existing VS Code files
  • Feature flag respect: Check usingPositronNotebooks() when needed
  • No virtualization: All cells render (performance consideration for large notebooks)
  • Webview lifecycle: Each output has own webview, coordinate mounting carefully

Self-Maintenance

Update Triggers

Update this skill when encountering:

  • File paths that don't exist → Search for new location, update paths
  • New patterns discovered → Add to references/common-patterns.md
  • Bug fixes revealing insights → Add to references/debugging-guide.md
  • Architecture changes → Update references/architecture.md and main doc

Update Process

  1. Identify what changed (path, pattern, bug fix, architecture)
  2. Update relevant file (SKILL.md or references/)
  3. Verify all file paths still exist with ./scripts/validate_setup.sh
  4. If architecture-significant, also update: src/vs/workbench/contrib/positronNotebook/docs/positron_notebooks_architecture.md

Path Validation

Before using any file path from this skill:

# Verify path exists
ls -la <path-from-skill>

# If wrong, search for correct location
find . -name "<filename>" | grep -v node_modules

Update skill with corrected path and add note about change.

Getting Help

For deeper understanding:

  1. Start with relevant reference doc (references/)
  2. Check main architecture doc (docs/positron_notebooks_architecture.md)
  3. Use helper scripts for validation and searching
  4. Set breakpoints and use VS Code debugging

This skill maintains lean, procedural guidance. Detailed technical information lives in progressive disclosure layers (references/ and main architecture doc).

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

28.56%
按下载量换算41

windsurf

26.19%
按下载量换算38

trae

19.34%
按下载量换算28

OpenCode

13.81%
按下载量换算20

Codex

7.18%
按下载量换算10

Antigravity

3.49%
按下载量换算5

安全审计

暂无安全审计结果可展示。

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills