Skip to content

Accessing Jupyter Kernels programmatically from API #13548

Closed Answered by DonJayamanne
aminelajmi asked this question in General
Discussion options

You must be logged in to vote

This is now supported via the api here

const api = vscode.extensions.get<JupyterAPI>('ms-toolsai.jupyter').exports
const kernelApi = await api.getKernelService();
const jupyterKernel = kernelApi.getKernel(<Notebook URI>).connection.connection;
jupyterKernel.sendControlMessage(....)
jupyterKernel.sendControlMessage(...)

As this is a proposed API, we would like to keep track of th extensions using this (so we can notify them of any changes to teh API).
Hence a message will be displayed if you attempt to use this API.
To get rid of this message we request you file an issue with the details of your extension (extension id) so we can allow it to use this in release mode.

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@aminelajmi
Comment options

Answer selected by DonJayamanne
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@nadavy
Comment options

@DonJayamanne
Comment options

@nadavy
Comment options

@nadavy
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants