How do I invoke IPython from a macro?