Jupyter Magic Memory
- %: line magic, %%cell magic
- Repeat Command:
%recall - Write cell content into a file:
%%writefile file.py - To autoreload your pyfile:
%load_ext autoreload
%autoreload 2
from yourfile import yourFunction
https://ipython.org/ipython-doc/3/config/extensions/autoreload.html - Use R in jupyter
%load_ext rpy2.ipythonR magic in cell
%%Rcode in line
%RMove variable between R and python
%Rpush, %Rpull
R magic tutorial: https://blog.dominodatalab.com/lesser-known-ways-of-using-notebooks/
R magic: https://ipython.org/ipython-doc/2/config/extensions/rmagic.html
rpy2: http://rpy2.readthedocs.io/en/version_2.8.x/index.html
Problem in rmagic: https://stackoverflow.com/questions/25829963/r-magic-for-ipython-notebook-runtime-error-turning-off-device-on-new-server-inst - %store
store variable between different ipython notebook