bundles / IPython 9.17.0 / IPython / core / magic / LazyMagic
class
IPython.core.magic:LazyMagic
Signature
class LazyMagic(manager: MagicsManager, spec: str, magic_kind: _MagicKind, magic_name: str) → NoneMembers
Summary
Stands in the magics table for a magic that is not imported yet.
Extended Summary
Listing and completing magics only look at names, so they stay cheap; using one -- calling it, or reading any attribute of it, as pyflyby does with magics["line"]["prun"].__self__ -- resolves through MagicsManager.find, which imports and registers the real thing.
Aliases
IPython.core.magic.LazyMagic