Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extensibility API: Add ability to execute initialization code when a kernel is started #16387

Open
1 of 3 tasks
pwang347 opened this issue Jan 17, 2025 · 0 comments
Open
1 of 3 tasks
Assignees
Labels
feature-request Request for new features or functionality

Comments

@pwang347
Copy link
Member

pwang347 commented Jan 17, 2025

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

CC @DonJayamanne @rebornix

@pwang347 pwang347 added the feature-request Request for new features or functionality label Jan 17, 2025
@vs-code-engineering vs-code-engineering bot added this to the Backlog Candidates milestone Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

2 participants