Live data from Hacker News

Advantages of Using R Notebooks Instead of Jupyter Notebooks (2017)

minimaxir.com

41–50 of 51 posts

Re: Advantages of Using R Notebooks Instead of Jupyter Notebooks (2017)

#42
post #5

RE python in Rmarkdown being limited... > The Python session ends after the cell executes, making it unhelpful for tasks other than ad hoc scripts. This isn't the case anymore thanks to the reticulate library. https://blog.rstudio.com/2018/03/26/reticulate-r-interface-t...

OP here:

reticulate isn't native to R Studio yet (it's in the insider build), but will be interesting to see what happens with adoption then.

Re: Advantages of Using R Notebooks Instead of Jupyter Notebooks (2017)

#44
post #41

Primary disadvantage of using R Notebooks Instead of Jupyter Notebooks: Writing R instead of numpy / pandas python.

You can use Python in R Notebooks. It is not fully integrated with RStudio, but pertaining just the notebooks, it runs fine.

Re: Advantages of Using R Notebooks Instead of Jupyter Notebooks (2017)

#45
post #38

Earlier quoted context omitted.

Reticulate was a major improvement in the data science workflow. We now have full interoperability between R, Python, and Julia (or Scala if you're on Spark). The ability to mix languages is really valuable.

What would be the equivalent package for Julia?

PyCall.jl can call Python from Julia. On the downside, it has a lot of problems and there doesn't seem to be enough dev effort to match.

Re: Advantages of Using R Notebooks Instead of Jupyter Notebooks (2017)

#46
post #41

Primary disadvantage of using R Notebooks Instead of Jupyter Notebooks: Writing R instead of numpy / pandas python.

R's tidyverse, along with the numerous R packages/documentation developed and tested over a long period of time, are efficient too. Thankful to see both Python and R thrive.

Re: Advantages of Using R Notebooks Instead of Jupyter Notebooks (2017)

#47

* You get enjoy a language with incompatible interfaces for every single data structure. * Write-only language ensures your ideas are difficult to steal

Please don't take HN into programming language flamewars. Those are shallow, predictable, and usually nasty.

https://news.ycombinator.com/newsguidelines.html

Re: Advantages of Using R Notebooks Instead of Jupyter Notebooks (2017)

#48

Earlier quoted context omitted.

It would help if you said explicitly what language you think is better in this respect. Having Data Frames in Python at all requires importing Pandas afaik, so criticizing R for requiring an extra data-manipulation package wouldn't make sense from a Python perspective.

The point is not that you have to import a package, but whether by default package layouts and interop make sense. Notably, python scientific libraries build on a set of common foundations and apis (numpy, pandas etc). Additions to the ecosystem aim to build on familiar apis irrespective of implementation details (e.g dask). Python’s heavy use of namespaces makes organising a working environment simple, while it’s fo…

> R meanwhile uses a global namespace

This is just plain wrong.

Re: Advantages of Using R Notebooks Instead of Jupyter Notebooks (2017)

#49

It’s just that RStudio’s vim support is so extremely bad, compared to VSCode or even the Jupyter Notebook vim plug-in. I guess this won’t bother you if you don’t have a developer background, but I find that editing code in RStudio is a real pain. I wish I could use RStudio with the exact same keybindings and vim behavior as Jupyter in the browser. That alone would make things bearable. Like the exact same keys for ce…

Hi, Which plugin do you use for Vim binding in Jupyter?

Re: Advantages of Using R Notebooks Instead of Jupyter Notebooks (2017)

#50

It’s just that RStudio’s vim support is so extremely bad, compared to VSCode or even the Jupyter Notebook vim plug-in. I guess this won’t bother you if you don’t have a developer background, but I find that editing code in RStudio is a real pain. I wish I could use RStudio with the exact same keybindings and vim behavior as Jupyter in the browser. That alone would make things bearable. Like the exact same keys for ce…

Hi, Which plugin do you use for Vim binding in Jupyter?

https://github.com/lambdalisue/jupyter-vim-binding
Post reply on HN