Permalink
Browse files

Merge pull request #3117 from Carreau/fixautomagic

propagate automagic change to shell

this is a band-aid for 0.13 backport, but a real fix will deprecate one or the other locations where this flag is stored.
  • Loading branch information...
2 parents 9e1e3ca + df373ed commit fd8eb91ebdd1cd1d31646f3ce16c508a3c042e41 @minrk minrk committed Mar 31, 2013
Showing with 4 additions and 1 deletion.
  1. +1 −1 IPython/core/interactiveshell.py
  2. +3 −0 IPython/core/magic.py
@@ -2042,7 +2042,7 @@ def set_completer_frame(self, frame=None):
def init_magics(self):
from IPython.core import magics as m
self.magics_manager = magic.MagicsManager(shell=self,
- confg=self.config,
+ config=self.config,
user_magics=m.UserMagics(self))
self.configurables.append(self.magics_manager)
View
@@ -303,6 +303,9 @@ class MagicsManager(Configurable):
auto_magic = Bool(True, config=True, help=
"Automatically call line magics without requiring explicit % prefix")
+
+ def _auto_magic_changed(self, name, value):
+ self.shell.automagic = value
_auto_status = [
'Automagic is OFF, % prefix IS needed for line magics.',

0 comments on commit fd8eb91

Please sign in to comment.