bundles / IPython 9.3.0 / IPython / core / interactiveshell / InteractiveShell / define_macro
function
IPython.core.interactiveshell:InteractiveShell.define_macro
Signature
def define_macro(self, name, themacro)Summary
Define a new macro
Parameters
name: strThe name of the macro.
themacro: str or MacroThe action to do upon invoking the macro. If a string, a new Macro object is created by passing the string to it.
Aliases
IPython.InteractiveShell.define_macro