""" #----------------------------------------------------------------------------- # Flags and Aliases #----------------------------------------------------------------------------- # copy flags from mixin: flags = dict(flags) # start with mixin frontend flags: frontend_flags = dict(app_flags) # add TerminalIPApp flags: frontend_flags.update(term_flags) # disable quick startup, as it won't propagate to the kernel anyway frontend_flags.pop('quick') # update full dict with frontend flags: flags.update(frontend_flags) # copy flags from mixin aliases = dict(aliases) # start with mixin frontend flags frontend_aliases = dict(app_aliases) # load updated frontend flags into full dict aliases.update(frontend_aliases) aliases['colors'] = 'InteractiveShell.colors' # get flags&aliases into sets, and remove a couple that # shouldn't be scrubbed from backend flags: frontend_aliases = set(frontend_aliases.keys()) frontend_flags = set(frontend_flags.keys())
qt_flags = { 'plain': ({ 'JupyterQtConsoleApp': { 'plain': True } }, "Disable rich text support."), } qt_flags.update( boolean_flag('banner', 'JupyterQtConsoleApp.display_banner', "Display a banner upon starting the QtConsole.", "Don't display a banner upon starting the QtConsole.")) # and app_flags from the Console Mixin qt_flags.update(app_flags) # add frontend flags to the full set flags.update(qt_flags) # start with copy of front&backend aliases list aliases = dict(aliases) qt_aliases = dict( style='JupyterWidget.syntax_style', stylesheet='JupyterQtConsoleApp.stylesheet', editor='JupyterWidget.editor', paging='ConsoleWidget.paging', ) # and app_aliases from the Console Mixin qt_aliases.update(app_aliases) qt_aliases.update({'gui-completion': 'ConsoleWidget.gui_completion'}) # add frontend aliases to the full set aliases.update(qt_aliases)
# start with copy of flags flags = dict(flags) qt_flags = { 'plain' : ({'JupyterQtConsoleApp' : {'plain' : True}}, "Disable rich text support."), } qt_flags.update(boolean_flag( 'banner', 'JupyterQtConsoleApp.display_banner', "Display a banner upon starting the QtConsole.", "Don't display a banner upon starting the QtConsole." )) # and app_flags from the Console Mixin qt_flags.update(app_flags) # add frontend flags to the full set flags.update(qt_flags) # start with copy of front&backend aliases list aliases = dict(aliases) qt_aliases = dict( style = 'IPythonWidget.syntax_style', stylesheet = 'JupyterQtConsoleApp.stylesheet', editor = 'IPythonWidget.editor', paging = 'ConsoleWidget.paging', ) # and app_aliases from the Console Mixin qt_aliases.update(app_aliases) qt_aliases.update({'gui-completion':'ConsoleWidget.gui_completion'}) # add frontend aliases to the full set aliases.update(qt_aliases)