##// END OF EJS Templates
propagate automagic change to shell
Matthias BUSSONNIER -
Show More
@@ -2042,7 +2042,7 b' class InteractiveShell(SingletonConfigurable):'
2042 def init_magics(self):
2042 def init_magics(self):
2043 from IPython.core import magics as m
2043 from IPython.core import magics as m
2044 self.magics_manager = magic.MagicsManager(shell=self,
2044 self.magics_manager = magic.MagicsManager(shell=self,
2045 confg=self.config,
2045 config=self.config,
2046 user_magics=m.UserMagics(self))
2046 user_magics=m.UserMagics(self))
2047 self.configurables.append(self.magics_manager)
2047 self.configurables.append(self.magics_manager)
2048
2048
@@ -304,6 +304,9 b' class MagicsManager(Configurable):'
304 auto_magic = Bool(True, config=True, help=
304 auto_magic = Bool(True, config=True, help=
305 "Automatically call line magics without requiring explicit % prefix")
305 "Automatically call line magics without requiring explicit % prefix")
306
306
307 def _auto_magic_changed(self, name, value):
308 self.shell.automagic = value
309
307 _auto_status = [
310 _auto_status = [
308 'Automagic is OFF, % prefix IS needed for line magics.',
311 'Automagic is OFF, % prefix IS needed for line magics.',
309 'Automagic is ON, % prefix IS NOT needed for line magics.']
312 'Automagic is ON, % prefix IS NOT needed for line magics.']
General Comments 0
You need to be logged in to leave comments. Login now