ipython notebook for R: Quickstart for Ubuntu

October 27, 2013
By

(This article was first published on Bommarito Consulting » r, and kindly contributed to R-bloggers)

If you’re like me, you love ipython notebook but often write R.  RStudio’s integrated RMarkdown 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, 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 and I will be using rNotebook in our class on Legal Analytics at MSU 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., http://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.

To leave a comment for the author, please follow the link and comment on his blog: Bommarito Consulting » r.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.