vscode-jupyter/api
..
.gitignore
.npmignore
LICENSE.md
README.md
SECURITY.md
clean.js
package.json
proposed.js
stable.js

README.md

Installation

npm install @vscode/jupyter-extension

Summary

First we need to define a package.json for the extension that wants to use the API: (https://github.com/Microsoft/vscode-jupyter).

Requirements

User is expected to install type definitions for VS Code via @types/vscode or @vscode-dts or other. See here for more information on creating your first VS Code.

See here for more information on consuming Extension APIs.

Sample

import { extensions } from 'vscode';
import type { JupyterAPI } from '@vscode/jupyter';

const jupyterApi = extensions.getExtension<JupyterAPI>('ms-jupyter.jupyter')?.exports;