This is still experimental and unreliable. Your code should be safe, since IPython handles saving and loading notebooks in another process, but you'll lose all your variables if it crashes.
##Installing
You'll need zmq development headers to compile rzmq. Install this, e.g. with apt:
sudo apt-get install libzmq3-devor with homebrew:
brew install zmq
# or upgrade
brew update
brew upgrade zmqWe need development versions of several packages from Github for now, due to recent fixes:
# If you don't already have devtools, install.packages("devtools")
library(devtools)
install_github("armstrtw/rzmq")
install_github("hadley/evaluate")
install_github("jeroenooms/jsonlite")
install_github("takluyver/IRdisplay")
install_github("takluyver/IRkernel")You'll also need IPython. If you already have a Python environment set up, install IPython using your preferred tools. If not, installing Anaconda is the quickest way to get everything you need.
ipython notebook --KernelManager.kernel_cmd="['R', '-e', 'IRkernel::main(\'{connection_file}\')']"You can also substitute 'qtconsole' or 'console' for 'notebook' in this command.