Extensibility API: Add ability to execute initialization code when a kernel is started #16387
Open
1 of 3 tasks
Labels
feature-request
Request for new features or functionality
Milestone
Motivation
It would be very useful to allow extensions to run initialization code whenever a kernel is started (or restarted). This would allow extensions to create richer notebook experiences (e.g., modifying the environment or exposing custom modules/helpers/variables) that are immediately available when a user executes a cell for the first time. One particularly interesting application of this is allowing extensions to register IPython formatters at the same time as contributing a VS Code Notebook Renderer to complete the full end-to-end story of providing richer outputs with a simple versioning story with no external package dependencies.
API Proposal
See https://github.com/microsoft/vscode-jupyter/blob/main/src/api.proposed.kernelStartHook.d.ts
Progress
waitUntil
foronDidStart
event #16375CC @DonJayamanne @rebornix
The text was updated successfully, but these errors were encountered: