deepcave.plugins.dynamic

# Dynamic

This module provides a plugin class for a dynamic plugin.

Register and handle callbacks.

## Classes
  • DynamicPlugin: This class provides a dynamic plugin object.

Classes

DynamicPlugin()

Provide a dynamic plugin object.

class deepcave.plugins.dynamic.DynamicPlugin[source]

Bases: Plugin, ABC

Provide a dynamic plugin object.

Register and handle callbacks.

Properties

outputsList[Tuple[str, str, bool]]

The registered outputs.

inputsList[Tuple[str, str, bool, Any]]

The registered inputs.

idstr

The identifier of the Plugin.

loggerLogger

The logger for debugging information.

use_cachebool

Defines whether to use the cache.

raw_outputsDict[str, Any]

A dictionary of the raw outputs.

__call__()[source]

Return the components for the plugin.

Basically, all blocks and elements of the plugin are stacked-up here.

Returns:

Layout as list of components.

Return type:

List[Component]

register_callbacks()[source]

Register basic callbacks for the plugin.

Return type:

None

Following callbacks are registered: - If inputs changes, the changes are pasted back.

This is in particular interest if input dependencies are used.

  • Raw data dialog to display raw data.

  • Callback to be redirected to the config if clicked on it.