%alias_magic to accept argument to %magic #2965

Closed
joonro opened this Issue Feb 21, 2013 · 2 comments

Comments

Projects
None yet
4 participants
Contributor

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.

Contributor

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

Contributor

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