%alias_magic to accept argument to %magic #2965

joonro opened this Issue Feb 21, 2013 · 2 comments


None yet
4 participants

joonro commented Feb 21, 2013

It would be great to have an ability to pass argument to %alias_magic. For example, %alias_magic h history -l 30 so I can just type h to get 30 lines of last history.


bfroehle commented Feb 21, 2013

@joonro I agree, and this feature was intended to be added at a later date. Places to update:

  • IPython.core.magic.MagicAlias
  • IPython.core.magic.MagicsManager.register_alias
  • IPython.core.magics.basic.BasicMagics.alias_magic

minrk removed the type-enhancement label Jan 14, 2015


nickweseman commented May 11, 2017

Hey guys, I just put in a pull request that adds this feature.

Carreau closed this in #10549 May 12, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment