Skip to content
Snippets Groups Projects
Commit a02906c3 authored by Ben Anderson's avatar Ben Anderson
Browse files

using python within RStudio

parent 55725c1e
No related branches found
No related tags found
No related merge requests found
Yes it's possible. I'm not sure why you would but we're a broad church so...
You need to set the interpreter...
On a mac:
* open Terminal
* type `which python`
* I get "/opt/anaconda3/bin/python"
* you might get other flavours and locations
* it needs to be the one that get updated when you install modules using `pip install numpy pandas matplotlib
* in RStudio go to Project options -> python. If you are not using an RStudio project do this in Global options instead
* paste the results of `which python` into the 'select' box. You can try to use the auto-find feature but it didn't find conda for me
* Save. RStudio will want to restart
If you open a .py file and try to run it RStudio will want to install reticulate which is R's interface to Python (apparently).
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment