Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Backport PR #3117: propagate automagic change to shell

Automagic toggling was broken.

this should fix it. Need to check for backport on 0.13.x
  • Loading branch information...
commit 64d6e0df3a1d263c644d275fd75f42562c4a3fed 1 parent d31ebe2
@minrk minrk authored
Showing with 4 additions and 1 deletion.
  1. +1 −1  IPython/core/interactiveshell.py
  2. +3 −0  IPython/core/magic.py
View
2  IPython/core/interactiveshell.py
@@ -2009,7 +2009,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
3  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.',
Please sign in to comment.
Something went wrong with that request. Please try again.