Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
woRkflow
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SERG
woRkflow
Commits
a02906c3
Commit
a02906c3
authored
2 years ago
by
Ben Anderson
Browse files
Options
Downloads
Patches
Plain Diff
using python within RStudio
parent
55725c1e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
howTo/usePythonInRStudio.md
+16
-0
16 additions, 0 deletions
howTo/usePythonInRStudio.md
with
16 additions
and
0 deletions
howTo/usePythonInRStudio.md
0 → 100644
+
16
−
0
View file @
a02906c3
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).
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment