How to use the envisage.core_plugin.CorePlugin function in envisage

To help you get started, we’ve selected a few envisage examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github enthought / envisage / examples / plugins / single_project / sample_project / run.py View on Github external
def main():
    """ Runs the application. """

    # Create the application.
    application = WorkbenchApplication(
        id="testProject_extended",
        plugins=[
            CorePlugin(),
            WorkbenchPlugin(),
            ProjectPlugin(),
            EnvProjectPlugin(),
            PythonShellPlugin(),
            # FIXME: This is uncommented for now until we have the new TreeEditor
            # implementation in place that can understand domain-objects that have
            # been abstracted to an INode interface.
            # DataPlugin(),
        ],
    )

    # Run the application.
    application.run()

    return
github NMGRL / pychron / pychron / envisage / pychron_run.py View on Github external
def app_factory(klass):
    """
        assemble the plugins
        return a Pychron TaskApplication
    """
    pychron_plugin = PychronTasksPlugin()

    plugins = [CorePlugin(),
               myTasksPlugin(),
               pychron_plugin,
               LoggerPlugin(),
               UsersPlugin()]

    plugins.extend(get_hardware_plugins())
    plugins.extend(get_user_plugins())

    app = klass(plugins=plugins)

    # set key bindings
    update_key_bindings(pychron_plugin.actions)

    return app
github bpteague / cytoflow / cytoflowgui / run.py View on Github external
from cytoflowgui.op_plugins import (ImportPlugin, ThresholdPlugin, RangePlugin, QuadPlugin,
                            Range2DPlugin, PolygonPlugin, BinningPlugin,
                            GaussianMixture1DPlugin, GaussianMixture2DPlugin,
                            BleedthroughLinearPlugin,
                            BeadCalibrationPlugin, AutofluorescencePlugin,
                            ColorTranslationPlugin, TasbePlugin, 
                            ChannelStatisticPlugin, TransformStatisticPlugin, 
                            RatioPlugin, DensityGatePlugin, FlowPeaksPlugin,
                            KMeansPlugin, PCAPlugin)
    
    from cytoflowgui.view_plugins import (HistogramPlugin, Histogram2DPlugin, ScatterplotPlugin,
                              BarChartPlugin, Stats1DPlugin, Kde1DPlugin, Kde2DPlugin,
                              ViolinPlotPlugin, TablePlugin, Stats2DPlugin, DensityPlugin,
                              ParallelCoordinatesPlugin, RadvizPlugin)

    plugins = [CorePlugin(), TasksPlugin(), FlowTaskPlugin(), TASBETaskPlugin(),
               ExportFigurePlugin()]    

    # ordered as we want them to show up in the toolbar    
    view_plugins = [HistogramPlugin(),
                    ScatterplotPlugin(),
                    Histogram2DPlugin(),
                    DensityPlugin(),
                    Kde1DPlugin(),
                    Kde2DPlugin(),
                    RadvizPlugin(),
                    ParallelCoordinatesPlugin(),
                    ViolinPlotPlugin(),
                    BarChartPlugin(),
                    Stats1DPlugin(),
                    Stats2DPlugin(),
                    TablePlugin()]
github enthought / envisage / examples / plugins / workbench / Lorenz / run.py View on Github external
def main():
    """ Run the application. """

    # Create an application with the specified plugins.
    lorenz_application = LorenzApplication(
        plugins=[
            CorePlugin(),
            WorkbenchPlugin(),
            LorenzPlugin(),
            LorenzUIPlugin(),
        ]
    )

    # Run it! This starts the application, starts the GUI event loop, and when
    # that terminates, stops the application.
    lorenz_application.run()

    return
github LTS5 / connectomeviewer / cviewer / app.py View on Github external
def get_non_gui_plugin_classes():
    """Get list of basic mayavi plugin classes that do not add any views or
    actions."""
    from envisage.core_plugin import CorePlugin
    from envisage.ui.workbench.workbench_plugin import WorkbenchPlugin
    from tvtk.plugins.scene.scene_plugin import ScenePlugin
    from mayavi.plugins.mayavi_plugin import MayaviPlugin
    
    plugins = [CorePlugin,
               WorkbenchPlugin,
               MayaviPlugin,
               ScenePlugin,
               ]
    return plugins
github robmcmullen / omnivore / omnimon / framework / application.py View on Github external
:param egg_path: list of user-specified paths to search for more plugins
    :param startup_task string: task factory identifier for task shown in initial window
    :param application_name string: change application name instead of default Omnimon
    """
    # Enthought library imports.
    from envisage.api import PluginManager
    from envisage.core_plugin import CorePlugin
    
    # Local imports.
    from omnimon.framework.plugin import OmnimonTasksPlugin, OmnimonMainPlugin
    from omnimon.file_type.plugin import FileTypePlugin
    from omnimon import get_image_path
    from omnimon.utils.jobs import get_global_job_manager
    
    # Include standard plugins
    core_plugins = [ CorePlugin(), OmnimonTasksPlugin(), OmnimonMainPlugin(), FileTypePlugin() ]
    if sys.platform == "darwin":
        from omnimon.framework.osx_plugin import OSXMenuBarPlugin
        core_plugins.append(OSXMenuBarPlugin())
    
    import omnimon.file_type.recognizers
    core_plugins.extend(omnimon.file_type.recognizers.plugins)
    
    import omnimon.plugins
    core_plugins.extend(omnimon.plugins.plugins)
    
    # Add the user's plugins
    core_plugins.extend(plugins)
    
    # Check basic command line args
    default_parser = argparse.ArgumentParser(description="Default Parser")
    default_parser.add_argument("--no-eggs", dest="use_eggs", action="store_false", default=True, help="Do not load plugins from python eggs")
github enthought / envisage / envisage / ids.py View on Github external
# is also available online at http://www.enthought.com/licenses/BSD.txt
# Thanks for using Enthought open source!

from envisage.core_plugin import CorePlugin
from envisage.plugins.ipython_kernel.ipython_kernel_plugin import IPythonKernelPlugin
from envisage.plugins.python_shell.python_shell_plugin import PythonShellPlugin
from envisage.ui.single_project.project_plugin import ProjectPlugin
from envisage.ui.tasks.tasks_plugin import TasksPlugin
from envisage.ui.workbench.workbench_plugin import WorkbenchPlugin

#### Extension Points #########################################################

# Extension Points defined by the CorePlugin.
CLASS_LOAD_HOOKS = CorePlugin.CLASS_LOAD_HOOKS
PREFERENCES = CorePlugin.PREFERENCES
SERVICE_OFFERS = CorePlugin.SERVICE_OFFERS

# Extension Points defined by the PythonShellPlugin.
# NOTE : The other PythonShellPlugin defines extension points with the same ID.
BINDINGS = PythonShellPlugin.BINDINGS
COMMANDS = PythonShellPlugin.COMMANDS

# Extension Points defined by the IPythonKernelPlugin.
IPYTHON_NAMESPACE = IPythonKernelPlugin.IPYTHON_NAMESPACE

# Extension Points defined by the ProjectPlugin.
FACTORY_DEFINITIONS = ProjectPlugin.FACTORY_DEFINITIONS
UI_SERVICE_FACTORY = ProjectPlugin.UI_SERVICE_FACTORY

# Extension Points defined by the TasksPlugin.
PREFERENCES_CATEGORIES = TasksPlugin.PREFERENCES_CATEGORIES
PREFERENCES_PANES = TasksPlugin.PREFERENCES_PANES
github enthought / envisage / examples / plugins / tasks / attractors / run.py View on Github external
def main(argv):
    """ Run the application.
    """
    logging.basicConfig(level=logging.WARNING)

    plugins = [CorePlugin(), TasksPlugin(), AttractorsPlugin()]
    app = AttractorsApplication(plugins=plugins)
    app.run()

    logging.shutdown()
github enthought / mayavi / mayavi / plugins / app.py View on Github external
def get_non_gui_plugin_classes():
    """Get list of basic mayavi plugin classes that do not add any views or
    actions."""
    from envisage.core_plugin import CorePlugin
    from envisage.ui.workbench.workbench_plugin import WorkbenchPlugin
    from tvtk.plugins.scene.scene_plugin import ScenePlugin
    from mayavi.plugins.mayavi_plugin import MayaviPlugin
    plugins = [CorePlugin,
               WorkbenchPlugin,
               MayaviPlugin,
               ScenePlugin,
               ]
    return plugins