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

Closed
2 of 3 tasks
pwang347 opened this issue Jan 17, 2025 · 2 comments
Closed
2 of 3 tasks
Assignees
Labels
api-proposal author-verification-requested Issues potentially verifiable by issue author feature-request Request for new features or functionality verified Verification succeeded
Milestone

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
@DonJayamanne DonJayamanne added the author-verification-requested Issues potentially verifiable by issue author label Jan 20, 2025
@DonJayamanne
Copy link
Contributor

Closing as fixed.
We can finalize the API based on feedback.

@pwang347
Copy link
Member Author

@DonJayamanne Verified. Thank you!

@DonJayamanne DonJayamanne added the verified Verification succeeded label Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-proposal author-verification-requested Issues potentially verifiable by issue author feature-request Request for new features or functionality verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

2 participants