bundles / IPython latest / IPython / core / magic / record_magic
function
IPython.core.magic:record_magic
source: /IPython/core/magic.py:135
Signature
def record_magic(dct: dict[str, dict[str, Any]], magic_kind: _MagicSpec, magic_name: str, func: Any) → NoneSummary
Utility function to store a function as a magic of a specific kind.
Parameters
dct: dictA dictionary with 'line' and 'cell' subdicts.
magic_kind: strKind of magic to be stored.
magic_name: strKey to store the magic as.
func: functionCallable object to store.
Aliases
IPython.core.magic.record_magic