From df373ed45383e9abeddd4a19b06070b1421b8a17 2013-03-30 10:54:36 From: Matthias BUSSONNIER Date: 2013-03-30 10:54:36 Subject: [PATCH] propagate automagic change to shell --- diff --git a/IPython/core/interactiveshell.py b/IPython/core/interactiveshell.py index f817270..a20e5a1 100644 --- a/IPython/core/interactiveshell.py +++ b/IPython/core/interactiveshell.py @@ -2042,7 +2042,7 @@ class InteractiveShell(SingletonConfigurable): 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) diff --git a/IPython/core/magic.py b/IPython/core/magic.py index 904ffe9..786e842 100644 --- a/IPython/core/magic.py +++ b/IPython/core/magic.py @@ -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.',