[IPython-dev] magic aliases

John Griffiths j.davidgriffiths at gmail.com
Tue Dec 23 02:40:28 EST 2014


Simple Q I think: is it possible to add a second alias for a magic function?

Basically, I'm using %%matlab and %matlab magics a lot, and
I think my notebooks would look just a tad nicer if I could reduce those
to  %%mb and %mb.

So is it possible to register '%%mb' and '%mb' as shorthands for '%%matlab'
and '%matlab' ?


Ta,


john


-- 

Dr. John Griffiths

Post-Doctoral Research Fellow

Rotman Research Institute, Baycrest

Toronto, Canada

and

Visiting Research Fellow

School of Physics

University of Sydney
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20141223/65738bfb/attachment.html>


More information about the IPython-dev mailing list