-
Notifications
You must be signed in to change notification settings - Fork 330
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 automatically resets RETICULATE_PYTHON variable #1536
Comments
Radian uses reticulate under the hood. By the time you're presented with the R repl by radian, reticulate has already selected and initialized a Python installation. If you want to use reticulate from radian with a specific python installation, you have to point radian at the Python you want it to use before the start of the R session. (E.g, set |
Thanks @t-kalinowski I can confirm that taking the following steps/guidelines makes things workable:
Given the above, once the virtualenv is activated, clicking on the Fair heads up though, this whole VSCode + Thanks again and cheers! |
Thank you for the detailed write-up! This should be very useful as other users encounter similar issues. |
I enjoy using radian, but it's disappointing that we can't use different python versions on-the-fly with it. I hope this issue is solved in the future! |
System
OS Name: Ubuntu 22.04.03 LTS
![image](https://private-user-images.githubusercontent.com/57411571/303543510-76a41d04-562a-4bc6-9550-5704bbe1ef52.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzYzNjQ4MDEsIm5iZiI6MTczNjM2NDUwMSwicGF0aCI6Ii81NzQxMTU3MS8zMDM1NDM1MTAtNzZhNDFkMDQtNTYyYS00YmM2LTk1NTAtNTcwNGJiZTFlZjUyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAxMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMTA4VDE5MjgyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE1ZGMzYjEyZTA3MWIzMzdhZWVhMmYyYTRlNDMzNmMyOWFmOTIzNGI0MjEwZDRhZTMyYTU0NDZhOWMxZDUwOGYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.xu7DToCUmFrDiWaOIhiEeC_BU7FJu3pKP8_oYD-7ZYE)
RVersion: 4.3.2
IMPORTANT
Also, I use VSCode with the R and R Debugger extensions:
And as part of that, I have
radian
installed as the R terminal when using VSCode.All instructions here were followed and have worked seamlessly: https://code.visualstudio.com/docs/languages/r
Steps to reproduce:
If it makes any difference, my virtualvenv will have its
.venv
folder created at the project's root. In this case thereticulate_bug
root level folder.RETICULATE_PYTHON
environment while loading in the libraryThere's no reason for it to do that.
Putting a
.Renviron
at the root directory does not assist with preventing this either; `reticulate will just overwrite matters even when the library is not explicitly loaded in:The text was updated successfully, but these errors were encountered: