MCPcopy Create free account
hub / github.com/ipython/ipython / __init__

Method __init__

IPython/core/magic.py:332–339  ·  view source on GitHub ↗
(self, shell=None, config=None, user_magics=None, **traits)

Source from the content-addressed store, hash-verified

330 user_magics = Instance('IPython.core.magics.UserMagics', allow_none=True)
331
332 def __init__(self, shell=None, config=None, user_magics=None, **traits):
333
334 super(MagicsManager, self).__init__(shell=shell, config=config,
335 user_magics=user_magics, **traits)
336 self.magics = dict(line={}, cell={})
337 # Let's add the user_magics to the registry for uniformity, so *all*
338 # registered magic containers can be found there.
339 self.registry[user_magics.__class__.__name__] = user_magics
340
341 def auto_status(self):
342 """Return descriptive string with automagic status."""

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected