Skip to content

Reticulate: Access ipykernel path #5368

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

Merged
merged 6 commits into from
Nov 15, 2024
Merged

Conversation

dfalbel
Copy link
Contributor

@dfalbel dfalbel commented Nov 14, 2024

This PR pairs with: rstudio/reticulate#1692
The reticulate PR addresses: #3502 (comment)

It allows Reticulate to reliably obtain the path to the Positron inspectors.py which implements
the variables pane methods. By calling:

.ps.ui.executeCommand("positron.reticulate.getIPykernelPath")

@dfalbel dfalbel requested a review from juliasilge November 14, 2024 13:06
Copy link
Contributor

@juliasilge juliasilge left a comment

Choose a reason for hiding this comment

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

Looks good! I see this:

.ps.ui.executeCommand("positron.reticulate.getIPykernelPath")
#> [1] "/Users/juliasilge/Work/posit/positron/extensions/positron-python/python_files/positron/positron_ipykernel"

And other commands still look to be usable without any problems or changes.

@dfalbel dfalbel merged commit 7d4a103 into main Nov 15, 2024
3 checks passed
@dfalbel dfalbel deleted the feature/reticulate-ipykernel-command branch November 15, 2024 15:18
@github-actions github-actions bot locked and limited conversation to collaborators Nov 15, 2024
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.

2 participants