

def get_plugin_classes():
    'Get list of default plugin classes to use for Mayavi.'
    from traitsui.api import toolkit
    toolkit()
    from traits.etsconfig.api import ETSConfig
    try_use_ipython = preference_manager.root.use_ipython
    use_ipython = False
    if ((ETSConfig.toolkit == 'wx') and try_use_ipython):
        try:
            from envisage.plugins.ipython_shell.view.ipython_shell_view import IPythonShellView
            use_ipython = True
        except:
            pass
    if use_ipython:
        from envisage.plugins.ipython_shell.ipython_shell_plugin import IPythonShellPlugin
        PythonShellPlugin = IPythonShellPlugin
    else:
        from envisage.plugins.python_shell.python_shell_plugin import PythonShellPlugin
    from envisage.plugins.text_editor.text_editor_plugin import TextEditorPlugin
    from apptools.logger.plugin.logger_plugin import LoggerPlugin
    from tvtk.plugins.scene.ui.scene_ui_plugin import SceneUIPlugin
    from mayavi.plugins.mayavi_ui_plugin import MayaviUIPlugin
    plugins = get_non_gui_plugin_classes()
    plugins.extend([LoggerPlugin, MayaviUIPlugin, SceneUIPlugin, try_use_ipython, TextEditorPlugin])
    return plugins

dataset/ETHPy150Open enthought/mayavi/mayavi/plugins/app.py get_plugin_classes/VarMisuse@186/320 `PythonShellPlugin`->`try_use_ipython`