class documentation
class PluginContext(object): (source)
Constructor: PluginContext(plugin_definition)
Context that represents a plugin and the Python objects it creates.
Parameters | |
plugin | the fiftyone.plugins.PluginDefinition for
the plugin |
Method | __init__ |
Undocumented |
Method | can |
Determines whether the given operator can be registered. |
Method | dispose |
Disposes all operators from this context. |
Method | has |
Determines whether the plugin has errors. |
Method | register |
Registers the given operator on the plugin. |
Method | register |
Registers all operators defined by the plugin on this context. |
Instance Variable | errors |
Undocumented |
Instance Variable | instances |
Undocumented |
Instance Variable | plugin |
Undocumented |
Property | name |
The plugin name. |
Property | secrets |
List of keys for required secrets as specified in the plugin definition. |
Determines whether the given operator can be registered.
Parameters | |
instance | an fiftyone.operators.operator.Operator |
Returns | |
True/False |
Registers the given operator on the plugin.
Note
Any errors are logged rather than being raised.
Parameters | |
cls | an fiftyone.operators.operator.Operator or
fiftyone.operators.panel.Panel class |