microsoft / vscode-jupyter

VS Code Jupyter extension
https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter
MIT License
1.3k stars 294 forks source link

Please add proposed API for opening a new notebook that uses a specific kernelspec on a specific kernel #16225

Open gjsjohnmurray opened 6 days ago

gjsjohnmurray commented 6 days ago

To visualize my goal, imagine adding "Create Interactive Window" and "Create Jupyter Notebook" buttons on the Kernel Specifications rows of your Jupyter Powertoys extension:

Image

I know the baseUrl of the kernel and the name of the kernelSpec but what I need to pass to your openNotebook function (currently defined in api.unstable.d.ts) is the id of the matching internal kernelConnectionMetadata item. Per the discussion in #16221 you do not want me to go via getKernelService (also unstable API) to obtain kernelConnectionMetadata.id