Using Magic Commands Outside Of Interactive Shell In Ipython
Is there a way to use 'magic commands' from IPython from an outside file? For example if I have a file, 'rcode.py' with the code: %load_ext rmagic %R a=c(1,2,3);b=c(2,3,4);print(su
Solution 1:
If you name your file with a .ipy
extension, ipython will parse it properly. You can simply make a symlink if you want:
$ ln -s rcode.py rcode.ipy
$ ipython rcode.ipy
Post a Comment for "Using Magic Commands Outside Of Interactive Shell In Ipython"