##// END OF EJS Templates
move %guiref out of KernelMagics, into usage
MinRK -
Show More
@@ -538,3 +538,11 b' default_gui_banner_parts = default_banner_parts + [gui_note]'
538 default_banner = ''.join(default_banner_parts)
538 default_banner = ''.join(default_banner_parts)
539
539
540 default_gui_banner = ''.join(default_gui_banner_parts)
540 default_gui_banner = ''.join(default_gui_banner_parts)
541
542 # page GUI Reference, for use as a magic:
543
544 def page_guiref(arg_s=None):
545 """Show a basic reference about the GUI Console."""
546 from IPython.core import page
547 page.page(gui_reference, auto_html=True)
548
@@ -362,17 +362,6 b' class KernelMagics(Magics):'
362 page.page(self.shell.getoutput('man %s | col -b' % arg_s,
362 page.page(self.shell.getoutput('man %s | col -b' % arg_s,
363 split=False))
363 split=False))
364
364
365 # FIXME: this is specific to the GUI, so we should let the gui app load
366 # magics at startup that are only for the gui. Once the gui app has proper
367 # profile and configuration management, we can have it initialize a kernel
368 # with a special config file that provides these.
369
370 @line_magic
371 def guiref(self, arg_s):
372 """Show a basic reference about the GUI console."""
373 from IPython.core.usage import gui_reference
374 page.page(gui_reference, auto_html=True)
375
376 @line_magic
365 @line_magic
377 def connect_info(self, arg_s):
366 def connect_info(self, arg_s):
378 """Print information for connecting other clients to this kernel
367 """Print information for connecting other clients to this kernel
General Comments 0
You need to be logged in to leave comments. Login now