'Load all IPython extensions in IPythonApp.extensions.
This uses the :meth:`ExtensionManager.load_extensions` to load all
the extensions listed in ``self.extensions``.'

def init_extensions(self):

    try:
        self.log.debug('Loading    IPython    extensions...')
        extensions = (self.default_extensions + self.extensions)
        if self.extra_extension:
            extensions.append(self.extra_extension)
        for ext in extensions:
            try:
                self.log.info(('Loading    IPython    extension:    %s' % ext))
                self.shell.extension_manager.load_extension(ext)
            except:
                if self.reraise_ipython_extension_failures:
                    raise
                msg = 'Error    in    loading    extension:    {ext}\nCheck    your    config    files    in    {location}'.format(ext=ext, location=self.profile_dir.location)
                self.log.warning(msg, exc_info=True)
    except:
        if self.reraise_ipython_extension_failures:
            raise
        self.log.warning('Unknown    error    in    loading    extensions:', exc_info=True)
