##// END OF EJS Templates
Extensions no longer responsible for checking if they are already loaded
Thomas Kluyver -
Show More
@@ -516,7 +516,6 b' class AutoreloadMagics(Magics):'
516
516
517 def load_ipython_extension(ip):
517 def load_ipython_extension(ip):
518 """Load the extension in IPython."""
518 """Load the extension in IPython."""
519 if 'autoreload' not in ip.extension_manager.loaded:
519 auto_reload = AutoreloadMagics(ip)
520 auto_reload = AutoreloadMagics(ip)
520 ip.register_magics(auto_reload)
521 ip.register_magics(auto_reload)
521 ip.set_hook('pre_run_code_hook', auto_reload.pre_run_code_hook)
522 ip.set_hook('pre_run_code_hook', auto_reload.pre_run_code_hook)
@@ -276,5 +276,4 b' class CythonMagics(Magics):'
276
276
277 def load_ipython_extension(ip):
277 def load_ipython_extension(ip):
278 """Load the extension in IPython."""
278 """Load the extension in IPython."""
279 if 'cythonmagic' not in ip.extension_manager.loaded:
279 ip.register_magics(CythonMagics)
280 ip.register_magics(CythonMagics)
@@ -364,5 +364,4 b' __doc__ = __doc__.format('
364
364
365 def load_ipython_extension(ip):
365 def load_ipython_extension(ip):
366 """Load the extension in IPython."""
366 """Load the extension in IPython."""
367 if 'octavemagic' not in ip.extension_manager.loaded:
367 ip.register_magics(OctaveMagics)
368 ip.register_magics(OctaveMagics)
@@ -590,5 +590,4 b' __doc__ = __doc__.format('
590
590
591 def load_ipython_extension(ip):
591 def load_ipython_extension(ip):
592 """Load the extension in IPython."""
592 """Load the extension in IPython."""
593 if 'rmagic' not in ip.extension_manager.loaded:
593 ip.register_magics(RMagics)
594 ip.register_magics(RMagics)
@@ -211,5 +211,4 b' class StoreMagics(Magics):'
211
211
212 def load_ipython_extension(ip):
212 def load_ipython_extension(ip):
213 """Load the extension in IPython."""
213 """Load the extension in IPython."""
214 if 'storemagic' not in ip.extension_manager.loaded:
214 ip.register_magics(StoreMagics)
215 ip.register_magics(StoreMagics)
General Comments 0
You need to be logged in to leave comments. Login now