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

Reticulate: Don't use bundled ipykernel #6400

Merged
merged 7 commits into from
Feb 20, 2025
Merged

Conversation

dfalbel
Copy link
Contributor

@dfalbel dfalbel commented Feb 19, 2025

With Reticulate, there's no way to control when the Python runtime will be started. It's possible that the Python runtime is started and only after some time it gets connected to Positron as a console. Thus there's no way to reliably modify PYTHONPATH in order to use the bundled Ipykernel.

With this PR, we special case kernels that might be using the startKernel functionality. For those, we don't control the kernel startup, so setting the environment variable wont help.

Adresses #6397

Release Notes

New Features

  • N/A

Bug Fixes

  • N/A

QA Notes

Start a reticulate session using a virtualenv that doesn't have ipykernel installed. Instead of using the bundled IPykernel, we should detect that it's not installed and offer a prompt to install it.

@:reticulate @:web

Copy link

github-actions bot commented Feb 19, 2025

E2E Tests 🚀
This PR will run tests tagged with: @:critical @:reticulate @:web

readme  valid tags

@dfalbel dfalbel force-pushed the fix/reticulate-ipykernel branch from f2b03dc to de22c2a Compare February 19, 2025 17:18
@dfalbel dfalbel requested a review from seeM February 19, 2025 17:19
Copy link
Contributor

@seeM seeM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you @dfalbel!

@dfalbel dfalbel merged commit ec2e357 into main Feb 20, 2025
28 checks passed
@dfalbel dfalbel deleted the fix/reticulate-ipykernel branch February 20, 2025 13:06
@github-actions github-actions bot locked and limited conversation to collaborators Feb 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants