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