Knitr beats the socks off of an iPython notebook. Both tools do the same job, but knitr doesn't require you to leave your established text editor workflow.
Tested specifically on OS X 10.9, with R 3.1.2 and Anaconda python distribution.
- Calling an R script from the terminal will use the python version currently in the system
PATH
. If you need to specify a python 3.x or python 2.x environment, make your life easier and do it from the command line before you do anything else.