vscode-jupyter/api
Don Jayamanne ad592e2378
Fixes to proposed API format (#15169)
* Fixes to format of proposed API

* oops
2024-02-09 13:05:19 +11:00
..
.gitignore esbuild for main bundle (#14599) 2023-10-31 14:31:34 -07:00
.npmignore Update npm api builld pipeline (#14309) 2023-09-12 16:07:46 +10:00
LICENSE.md
README.md Update npm api builld pipeline (#14309) 2023-09-12 16:07:46 +10:00
SECURITY.md
clean.js
package.json Update npm api builld pipeline (#14309) 2023-09-12 16:07:46 +10:00
proposed.js Fixes to proposed API format (#15169) 2024-02-09 13:05:19 +11:00
stable.js Update npm api builld pipeline (#14309) 2023-09-12 16:07:46 +10:00

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;