ipython notebook for R: Quickstart for Ubuntu

Archive · 1 min read

If you're like me, you love ipython notebook (jupyter.org/) but often write R. RStudio's integrated RMarkdown (rmarkdown.rstudio.com/) is nice, but for some contexts like quick demos or basic training, a browser-based interface is unbeatable. What if we could get the best of both worlds - an ipython notebook for R?

The answer is rNotebook, and if you haven't seen it yet, take a moment to watch the video below from Ramnath Vaidyanathan (github.com/ramnathv), its creator:

Now, before I get your hopes up too high, it's not under very active development and it doesn't come with the maturity that you get from ipython notebook (e.g., keyboard shortcuts, password-protection, multiple notebooks). That said, it's definitely worth a try!

To get started quickly, I've put together a basic gist that will get an Ubuntu 13.04 up and running with a live rNotebook instance. Dan (web.archive.org/web/20130112210334/http://www.law.msu.edu...) and I will be using rNotebook in our class (computationallegalstudies.com/quantitative-methods-for-la...) on Legal Analytics at MSU (www.law.msu.edu/) in the upcoming week, and I'll be launching an EC2 t1.micro for each of the students. We'll see how it goes!

To run it on your own, just `wget` and `sudo bash` execute rnotebook_prepare.sh. Then, point your browser at port 8100 wherever you've installed, e.g., localhost:8100/. Good luck!

N.B.: The WebSockets implementation is not currently compatible with versions of Chrome 30+ due to loose RFC compliance. You'll need to use FF or a version of Chrome pre-30.

Embedded in the original post: //www.youtube.com/embed/MqMkCk-nc6k

consulting interactive ipython notebook programming r rnotebook technology

Insights by email

Get new insights by email

One email when we publish something new, and nothing when we don't. No tracking pixels, and leaving takes one click.

Lists

We'll send one email to confirm. See the privacy notice.

Working on something like this? Talk to us →