You are viewing an older version (9.5.0). Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.5.0 / IPython / core / magic / record_magic

function

IPython.core.magic:record_magic

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

Signature

def   record_magic ( dct magic_kind magic_name func )

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