Skip to content
Browse files

Add mechanism to have extensions always loaded.

  • Loading branch information...
1 parent e1c2632 commit 2f1ded15c400db9fb6bfc45309e20290df26cc02 @takluyver committed Nov 30, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 IPython/core/shellapp.py
View
7 IPython/core/shellapp.py
@@ -130,6 +130,9 @@ 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)
exec_files = List(Unicode, config=True,
help="""List of files to run at IPython startup."""
@@ -158,11 +161,9 @@ def init_extensions(self):
This uses the :meth:`ExtensionManager.load_extensions` to load all
the extensions listed in ``self.extensions``.
"""
- if not self.extensions:
- return
try:
self.log.debug("Loading IPython extensions...")
- extensions = self.extensions
+ extensions = self.default_extensions + self.extensions
for ext in extensions:
try:
self.log.info("Loading IPython extension: %s" % ext)

0 comments on commit 2f1ded1

Please sign in to comment.
Something went wrong with that request. Please try again.