This is a development version (latest) and may be unstable. Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython latest / IPython / core / magic / record_magic

function

IPython.core.magic:record_magic

source: /IPython/core/magic.py :125

Signature

def   record_magic ( dct : dict[str, dict[str, Any]] magic_kind : _MagicSpec magic_name : str func : Any )  →  None

Summary

Utility function to store a function as a magic of a specific kind.

Parameters

dct : dict

A dictionary with 'line' and 'cell' subdicts.

magic_kind : str

Kind of magic to be stored.

magic_name : str

Key to store the magic as.

func : function

Callable object to store.

Aliases

  • IPython.core.magic.record_magic