Skip to content

Commit

Permalink
Merge pull request ipython#7955 from minrk/extra-extension
Browse files Browse the repository at this point in the history
don't merge App.extra_extension into App.extensions
  • Loading branch information
Carreau committed Mar 4, 2015
2 parents a7059b1 + bb3a32f commit 34a0e6b
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions IPython/core/shellapp.py
Expand Up @@ -2,23 +2,10 @@
"""
A mixin for :class:`~IPython.core.application.Application` classes that
launch InteractiveShell instances, load extensions, etc.
Authors
-------
* Min Ragan-Kelley
"""

#-----------------------------------------------------------------------------
# Copyright (C) 2008-2011 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING, distributed as part of this software.
#-----------------------------------------------------------------------------

#-----------------------------------------------------------------------------
# Imports
#-----------------------------------------------------------------------------
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.

from __future__ import absolute_import
from __future__ import print_function
Expand Down Expand Up @@ -152,10 +139,6 @@ class InteractiveShellApp(Configurable):
extra_extension = Unicode('', config=True,
help="dotted module name of an IPython extension to load."
)
def _extra_extension_changed(self, name, old, new):
if new:
# add to self.extensions
self.extensions.append(new)

# Extensions that are always loaded (not configurable)
default_extensions = List(Unicode, [u'storemagic'], config=False)
Expand Down Expand Up @@ -269,6 +252,8 @@ 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)
Expand Down

0 comments on commit 34a0e6b

Please sign in to comment.