The source code for this notebook can be found here:  

https://github.com/mthomas-ketchbrook/python_and_r_in_rmarkdown