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

bundles / IPython 9.12.0 / IPython / core / magic / MagicAlias

class

IPython.core.magic:MagicAlias

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

Signature

class   MagicAlias ( shell : InteractiveShell magic_name : str magic_kind : _MagicKind magic_params : str | None = None )  →  None

Members

Summary

An alias to another magic function.

Extended Summary

An alias is determined by its magic name and magic kind. Lookup is done at call time, so if the underlying magic changes the alias will call the new function.

Use the MagicsManager.register_alias method or the %alias_magic magic function to create and register a new alias.

Aliases

  • IPython.core.magic.MagicAlias