def init_magics(self):
    from IPython.core import magics as m
    self.magics_manager = magic.MagicsManager(shell=self, parent=self, user_magics=m.UserMagics(self))
    self.configurables.append(self.magics_manager)
    self.register_magics = self.magics_manager.register
    self.register_magics(m.AutoMagics, m.BasicMagics, m.CodeMagics, m.ConfigMagics, m.DisplayMagics, m.ExecutionMagics, m.ExtensionMagics, m.HistoryMagics, m.LoggingMagics, m.NamespaceMagics, m.OSMagics, m.PackagingMagics, m.PylabMagics, m.ScriptMagics)
    self.register_magics(m.AsyncMagics)
    mman = self.magics_manager
    mman.register_alias('ed', 'edit')
    mman.register_alias('hist', 'history')
    mman.register_alias('rep', 'recall')
    mman.register_alias('SVG', 'svg', 'cell')
    mman.register_alias('HTML', 'html', 'cell')
    mman.register_alias('file', 'writefile', 'cell')
    self.run_line_magic('colors', self.colors)
def init_magics(self):
    from IPython.core import magics as m
    self.magics_manager = magic.MagicsManager(shell=self, parent=self, user_magics=m.UserMagics(self))
    self.configurables.append(self.magics_manager)
    self.register_magics = self.magics_manager.register
    self.register_magics(m.AutoMagics, m.BasicMagics, m.CodeMagics, m.ConfigMagics, m.DisplayMagics, m.ExecutionMagics, m.ExtensionMagics, m.HistoryMagics, m.LoggingMagics, m.NamespaceMagics, m.OSMagics, m.PackagingMagics, m.PylabMagics, m.ScriptMagics)
    self.register_magics(m.AsyncMagics)
    mman = self.magics_manager
    mman.register_alias('ed', 'edit')
    mman.register_alias('hist', 'history')
    mman.register_alias('rep', 'recall')
    mman.register_alias('SVG', 'svg', 'cell')
    mman.register_alias('HTML', 'html', 'cell')
    mman.register_alias('file', 'writefile', 'cell')
    self.run_line_magic('colors', self.colors)