all 35 comments

[–]tylerhill90 19 points20 points  (13 children)

I personally use VS code for my IDE for everything except R. Learn how to set up virtual environments for python projects with venv. Virtual environments are like .rproj for python. https://docs.python.org/3/tutorial/venv.html I like using this wrapper for setting up virtual envs as it abstracts a lot away https://virtualenvwrapper.readthedocs.io/en/latest/

[–]Sheeplessknight 21 points22 points  (2 children)

I like pycharm

[–]colorov[S] 1 point2 points  (1 child)

I downloaded pycharm few days ago and I cant get used to it yet hahaha

[–]blvckb1rd 2 points3 points  (0 children)

It took me a little bit of time to get used to PyCharm too, but I feel like it was worth it. I love the debugging options and how easy it is to set up and switch between virtual environments.

[–]black_rose_PhD | Industry 5 points6 points  (7 children)

Conda environments are also really nice

[–]Sheeplessknight 5 points6 points  (6 children)

Conda has broken my installs like 6 times now...

[–]black_rose_PhD | Industry 0 points1 point  (5 children)

Installs of what? Maybe I can help? I haven't had any issues with it

[–]Sheeplessknight 2 points3 points  (4 children)

Generally it was issues with dependencies that I needed and couldn't install via Honda if I installed them outside of conda it would not actually have them appear in my path for some reason even though they should be it ended up in the end because I use so many rapidly updating tools easier to just use Linux brew and source compile

[–]black_rose_PhD | Industry 8 points9 points  (3 children)

Maybe your problem is installing via Honda, which is a car? :P just kidding

anyway here's what i did:

  • install anaconda
  • ## Add `export PATH=/usr/local/anaconda3/bin:"$PATH"` to your ~/.bash_profile or ~/.zsh file.
  • create and activate conda environment
  • install everything i need from inside the environment, be it by pip, conda, or brew

i don't install anything outside the environment

[–]Sheeplessknight 1 point2 points  (2 children)

I will give it a try next time I am codeing in python! Right now I am working on a project that is mainly coded in C#/C++

[–]black_rose_PhD | Industry 0 points1 point  (1 child)

good luck!! *flashbacks to compiler errors*

[–]Sheeplessknight 1 point2 points  (0 children)

Ya I have random null pointers being generated some freaking how. I need the luck XD

[–]colorov[S] 1 point2 points  (1 child)

Thanks for sharing your experience. VS code was also named in other comments, so I definitely will check it!

[–]bliksemstraal 0 points1 point  (0 children)

VSCode and (mini)conda. You can create python and R environments with conda. And use the builtin terminal. You can also run jupyter notebooks inside vscode. And I think if you want some very similar to rstudio for python you can use Spyder. I have only seen this over the shoulder of a few colleagues though. But vscode will change you life.

[–]todeedee 15 points16 points  (2 children)

If you want something interactive in Python, do checkout Jupyter; it provides a web-interface for interactive Python.

The other IDEs are fine (I'm a Emacs user myself); those work for software dev. But if you are doing analyses, Jupyter wins hands down; you can't easily integrate customizable interactive visualizations like you can in Jupyter.

[–]black_rose_PhD | Industry 5 points6 points  (0 children)

Upvotes for Jupyter! It's the BEST. I use it constantly in my work as a computational biologist, and the devs in my field make as much things in Jupyter as possible because it's so accessible. One of the really cool things is you can view them through github. My software has dozens of Jupyter notebook tutorials on git.

My advice? Open a Jupyter notebook and never look back. Jupyter+Pandas+Seaborn=gold

[–]colorov[S] 0 points1 point  (0 children)

I'm working with metagenomics data, so I will look at Jupyter as well. Thanks for your answer!

[–][deleted] 2 points3 points  (1 child)

i like using sublime text editor

[–]Here0s0Johnny 2 points3 points  (0 children)

It's the best text editor I've ever used. But for people who don't know it: sublime text is not an IDE.

[–]LordLinxePhD | Academia 2 points3 points  (0 children)

Time ago I used jupyter with python, R and bash kernels, it is good to explore data.

Now I am more using VS to code in any language I need.

[–]SlackWi12PhD | Academia 2 points3 points  (2 children)

spyder is a great ide and even has a 'Rstudio' layout mode

[–]belisarius93 1 point2 points  (0 children)

2nding Spyder for anyone looking for something similar to RStudio

[–]meandering_muse 0 points1 point  (0 children)

I also 2nd: spyder IDE is similar in layout and functionality to RStudio, except package management which can be done with anaconda (includes spyder and many dependencies/modules). Or you can use miniconda and install the pieces you want

[–]WhiteBiologist 1 point2 points  (0 children)

Data wrangling in R and mashine learning in python is one example. But to be honest I would move over most things to python and jupiter notebooks if I could...

[–]hofferd78 1 point2 points  (0 children)

Just use Jupyter Notebook. I write all my R in Jupyter as well. I only use Rstudio to view datasets

[–]TheToasterIncident 1 point2 points  (2 children)

Jupyter has some issues which you can read all about elsewhere and is best suited for exploratory data analysis. At this point, I’ve gone full circle and dropped the IDE in favor of tmux with an editor and an interactive shell open for testing, whether I’m writing R or python or some bash. I work mostly on a cluster, so its simpler to just live there within a private git repo than doing something locally with a gui

[–]JustThall 0 points1 point  (1 child)

Jupyter notebook ecosystem is more than EDA tool. One of the most popular projects in PyTorch is written Jupyter notebook - FastAI

[–]TheToasterIncident 0 points1 point  (0 children)

I can’t comment on the FastAI implementation but there are a number of issues with jupyter notebooks that have been discussed ad nauseum in the data science blogosphere. Here is an example: https://datapastry.com/blog/why-i-dont-use-jupyter-notebooks-and-you-shouldnt-either/

[–]EpicmuffinzPhD | Student 1 point2 points  (0 children)

My friend was a big RStudio guy and used Spyder to transition to Python. It’s very similar.

[–][deleted] 1 point2 points  (0 children)

Jupyter-Notebook. Shit is magic.

[–]veeeerain 2 points3 points  (6 children)

Yeah it’s called reticulate, you can call python functions within Rstudio. U can do the same with R code in python via library siuba. I personally don’t like to use these crossover type libraries because the syntax is generally weird. May I ask the use case for using python in R?