Support bundled ipykernel for reticulate sessions - #1404
Open
t-kalinowski wants to merge 2 commits into
Open
Conversation
Report the embedded interpreter without importing ipykernel. Accept optional import paths in the kernel-start RPC and prepend them before launching the kernel. Add opt-in integration coverage for project environments with bundled packages and managed environments with and without the bundle.
Keep the Ark change focused on interpreter metadata and kernel import paths. The full Positron bundle startup integration does not belong here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Python (reticulate) sessions can fail to start when the project's Python environment lacks
ipykernel, even when the user's code doesn't depend on it. Users see an error aboutpositron_ipykernel, as reported in this comment.Positron already ships
ipykernel. This adds the Ark support needed to make that bundled copy available toreticulate. Ark reports which Python version and architecture are running inside R, then accepts the locations of the matching packages before starting the kernel.A companion Positron PR posit-dev/positron#16045 supplies those locations. Existing callers can omit them and continue using packages installed in their Python environment.