diff --git a/IPython/core/usage.py b/IPython/core/usage.py index 309d1e2..e9d4ef9 100644 --- a/IPython/core/usage.py +++ b/IPython/core/usage.py @@ -538,3 +538,11 @@ default_gui_banner_parts = default_banner_parts + [gui_note] default_banner = ''.join(default_banner_parts) default_gui_banner = ''.join(default_gui_banner_parts) + +# page GUI Reference, for use as a magic: + +def page_guiref(arg_s=None): + """Show a basic reference about the GUI Console.""" + from IPython.core import page + page.page(gui_reference, auto_html=True) + diff --git a/IPython/zmq/zmqshell.py b/IPython/zmq/zmqshell.py index ca21445..6f396f7 100644 --- a/IPython/zmq/zmqshell.py +++ b/IPython/zmq/zmqshell.py @@ -362,17 +362,6 @@ class KernelMagics(Magics): page.page(self.shell.getoutput('man %s | col -b' % arg_s, split=False)) - # FIXME: this is specific to the GUI, so we should let the gui app load - # magics at startup that are only for the gui. Once the gui app has proper - # profile and configuration management, we can have it initialize a kernel - # with a special config file that provides these. - - @line_magic - def guiref(self, arg_s): - """Show a basic reference about the GUI console.""" - from IPython.core.usage import gui_reference - page.page(gui_reference, auto_html=True) - @line_magic def connect_info(self, arg_s): """Print information for connecting other clients to this kernel