| 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.""" |