Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

propagate automagic change to shell

  • Loading branch information...
commit df373ed45383e9abeddd4a19b06070b1421b8a17 1 parent c810a36
@Carreau 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
@@ -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
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.