The %R line magics in IPython/Jupyter notebooks are awesome! You can %Rpush and %Rpull data back and forth, and do whatever you want in between:
http://nbviewer.ipython.org/github/ipython/ipython/blob/3607...