Extension for IPython to run AnyBody macros. For more details see this demo of anybodymagic
%install_ext https://raw.github.com/melund/anybodymagic/master/anybodymagic.py
%load_ext anybodymagic
%%anybody
load "MyModel.main.any"
operation Main.MyStudy.InverseDynamics
run
classoperation Main.MyStudy.Output "Save data" --type="Deep" --file="output.anydata.h5"
exit
More detailed examples are given in this ipython notebook.