You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Brian Granger edited this page Feb 13, 2013
·
1 revision
It's now (svn rev 2337) possible to call macros with arguments on the command line. This is handy if you have constructed an elaborate macro and want to %edit it to be more generic - specify different target directories to copy files etc.
The arguments to macros are always contained in IPython user namespace, in _margv list variable, created using the normal IPython autocall handling.
Here we create a macro that takes an argument by "simulating" the argument passing on the first run (line #1):