4 ms·
> Jupyter[2] notebooks now have really first class support for R. Jupyter and R is a bit iffy since the R kernel is not native. Although the kernel works fine,
by minimaxir 11y ago
> Jupyter[2] notebooks now have really first class support for R.
Jupyter and R is a bit iffy since the R kernel is not native. Although the kernel works fine, setting it up has a ton of manually-installed dependencies, and in-line plots flat-out give unexpected output. (I've had to cheat by embeding charts via Markdown. Although that has the benefit of having the charts be responsive)
The important perk is that Jupyter notebooks are now rendered natively on GitHub, which I've made considerable use of: https://github.com/minimaxir/sf-arrests-when-where/blob/master/crime_data_sf.ipynb https://github.com/minimaxir/sf-arrests-when-where/blob/mast...
- earino 11y ago> Jupyter and R is a bit iffy since the R kernel is not native. Although the kernel works fine, setting it up has a ton of manually-installed dependencies, and in-line plots flat-out give unexpected output. (I've had to cheat by embeding charts via Markdown. Although that has the benefit of having the charts be responsive) You know, to be completely honest, I've never used it directly. I've always used it on our platform. It's very possible that our engineers already did all that setup so it "just works." I took the original post: http://r-statistics.co/Statistical-Tests-in-R.html http://r-statistics.co/Statistical-Tests-in-R.html and reimplemented it in an R notebook with some simple plots at the end, but yeah, the plotting just sort of works for me. I didn't realize I had an incomplete view of the complexity of getting that working :( https://app.dominodatalab.com/earino/statistical_tests/view/Statistical+Tests.ipynb https://app.dominodatalab.com/earino/statistical_tests/view/... We also render the notebooks. The difference is that we also let you run them :)
- IndianAstronaut 11y agoPackage installation can be a bit of an issue as well, especially if you accidentally install a package twice. But overall, I still prefer notebooks to Rstudio. They are transparent and you can really trace your progress and share the info with others.
- TheLogothete 11y agoAnd you can't with Rstudio? There's a freaking notebook feature built right in.
- IndianAstronaut 11y agoMuch easier to turn the Jupyter noteboks into a clean html format. Also, it's sequential, with Rstudio it's nice, but doesn't have the cell format.
- stared 11y agoManually setting it is hard (on OS X + Homebrew Python I did it after a long fight; main problem: rmzq library). But... it is super easy with Anaconda: https://www.continuum.io/blog/developer/jupyter-and-conda-r https://www.continuum.io/blog/developer/jupyter-and-conda-r
- minimaxir 11y agoHuh, I thought conda was Python only. I'll definitely take a look!