<s> """<STR_LIT>""" <EOL> from envisage . plugins . ipython_kernel . ipython_kernel_plugin import ( <EOL> IPYTHON_KERNEL_PROTOCOL ) <EOL> from envisage . ui . tasks . api import TaskExtension <EOL> from envisage . api import Plugin <EOL> from traits . api import List <EOL> from pyface . tasks . action . api import SGroup , SchemaAddition <EOL> TASK_EXTENSIONS = '<STR_LIT>' <EOL> class IPythonKernelUIPlugin ( Plugin ) : <EOL> """<STR_LIT>""" <EOL> id = '<STR_LIT>' <EOL> name = '<STR_LIT>' <EOL> contributed_task_extensions = List ( contributes_to = TASK_EXTENSIONS ) <EOL> def _contributed_task_extensions_default ( self ) : <EOL> from . actions import StartQtConsoleAction <EOL> def menu_factory ( ) : <EOL> kernel = self . application . get_service ( IPYTHON_KERNEL_PROTOCOL ) <EOL> return SGroup ( <EOL> StartQtConsoleAction ( kernel = kernel ) , <EOL> id = '<STR_LIT>' <EOL> ) <EOL> return [ <EOL> TaskExtension ( <EOL> actions = [ <EOL> SchemaAddition ( <EOL> path = '<STR_LIT>' , <EOL> factory = menu_factory , <EOL> id = '<STR_LIT>' , <EOL> ) , <EOL> ] <EOL> ) <EOL> ] </s>
