Interface to trigger builtin operations on an execution context.
Parameters | |
ctx | an fiftyone.operators.executor.ExecutionContext |
Method | __init__ |
Undocumented |
Method | apply |
Force update the state for path in the specified panel in the App. |
Method | clear |
Clear all selections, filters, and view stages from the App. |
Method | clear |
Clear the data of the specified panel in the App. |
Method | clear |
Clear the state of the specified panel in the App. |
Method | clear |
Clear the contents of a sample field. |
Method | clear |
Clear the selected labels in the App. |
Method | clear |
Clear selected samples in the App. |
Method | clear |
Clear all filters in the App's sidebar. |
Method | clear |
Clear the view bar in the App. |
Method | clone |
Clone a sample field to a new field name. |
Method | clone |
Clone the selected samples in the App. |
Method | close |
Close all open panels in the App. |
Method | close |
Close the given panel in the App. |
Method | close |
Closes the App's sample modal. |
Method | console |
Log a message to the console. |
Method | convert |
Convert the extended selection to selected samples in the App. |
Method | copy |
Copy the current view in the App as JSON. |
Method | delete |
Delete a sample field. |
Method | delete |
Delete the selected labels in the App. |
Method | delete |
Delete the selected samples in the App. |
Method | hide |
Hide the App's sidebar. |
Method | list |
List files in a directory or list filesystems. |
Method | notify |
Show a notification in the App. |
Method | open |
Open all available panels in the App. |
Method | open |
Open the specified dataset in the App. |
Method | open |
Open a panel with the given name and layout options in the App. |
Method | open |
Opens the specified sample or group in the App's sample modal. |
Method | patch |
Patch the state of the specified panel in the App. |
Method | patch |
Patch the state of the specified panel in the App. |
Method | print |
Print a message to the standard output. |
Method | reduce |
Reduce the state of the specified panel in the App. |
Method | refresh |
Refresh the colors used in the App's UI. |
Method | register |
Registers a panel with the given name and lifecycle callbacks. |
Method | reload |
Reload the dataset in the App. |
Method | reload |
Reload the sample grid in the App. |
Method | rename |
Rename a sample field to a new field name. |
Method | set |
Set the active fields in the App. |
Method | set |
Sets the extended selection in the App. |
Method | set |
Set the active group slice in the App. |
Method | set |
Set the entire data of the specified panel in the App. |
Method | set |
Set the entire state of the specified panel in the App. |
Method | set |
Set the title of the specified panel in the App. |
Method | set |
Set the progress indicator in the App's UI. |
Method | set |
Set the selected labels in the App. |
Method | set |
Select the specified samples in the App. |
Method | set |
Sets the current spaces in the App. |
Method | set |
Set the current view in the App. |
Method | show |
Show output in the App's UI. |
Method | show |
Show output in the specified panel in the App. |
Method | show |
Show specific samples, optionally using extended selection in the App. |
Method | show |
Show the samples that are currently selected in the App. |
Method | show |
Show the App's sidebar. |
Method | split |
Split the panel with the given layout in the App. |
Method | test |
Test the operator with given parameters. |
Method | toggle |
Toggle the visibility of the App's sidebar. |
Method | track |
Track an event in the App. |
Method | view |
Set the view in the App from JSON present in clipboard. |
Method | _create |
Undocumented |
Instance Variable | _ctx |
Undocumented |
Force update the state for path in the specified panel in the App.
Parameters | |
path:str | the path to force update |
panel | Undocumented |
Clear the data of the specified panel in the App.
Parameters | |
panelNone | the optional ID of the panel to clear. If not provided, the ctx.panel_id will be used |
Clear the state of the specified panel in the App.
Parameters | |
panelNone | the optional ID of the panel to clear. If not provided, the ctx.panel_id will be used |
Clone a sample field to a new field name.
Parameters | |
field | the name of the field to clone |
new | the name for the new field |
Show a notification in the App.
Variants are "info", "success", "warning", and "error".
Parameters | |
message | the message to show |
variant:"info" | the type of notification |
Open a panel with the given name and layout options in the App.
Parameters | |
name | the name of the panel to open |
isTrue | whether to activate the panel immediately |
layout:None | the layout orientation ("horizontal", "vertical"), if applicable |
force:False | whether to force open the panel. Skips the check to see if a panel with the same name exists or whether the panel declares allow_multiple=False |
forceFalse | whether to force open the panel even if it is already open. Only applicable if force is True |
Patch the state of the specified panel in the App.
Parameters | |
data | the data to set |
panelNone | the optional ID of the panel to clear. If not provided, the ctx.panel_id will be used |
Patch the state of the specified panel in the App.
Parameters | |
state | the state to set |
panelNone | the optional ID of the panel to clear. If not provided, the ctx.panel_id will be used |
Reduce the state of the specified panel in the App.
Parameters | |
reducer | the reducer to apply |
panelNone | the optional ID of the panel to clear. If not provided, the ctx.panel_id will be used |
Registers a panel with the given name and lifecycle callbacks.
Parameters | |
name | the name of the panel |
label | the display name of the panel |
helpNone | help text associated with the panel in markdown format |
category:Categories.CUSTOM | the category of the panel |
beta:False | whether the panel is in beta |
isFalse | whether the panel is new |
icon:None | the icon to show in the panel's tab |
lightNone | the icon to show in the panel's tab when the App is in light mode |
darkNone | the icon to show in the panel's tab when the App is in dark mode |
surfaces:'grid' | surfaces in which to show the panel. Must be one of 'grid', 'modal', or 'grid modal' |
onNone | an operator to invoke when the panel is loaded |
onNone | an operator to invoke when the panel is unloaded |
onNone | an operator to invoke when the panel state changes |
onNone | an operator to invoke when the panel execution context changes |
onNone | an operator to invoke when the current dataset changes |
onNone | an operator to invoke when the current view changes |
onNone | an operator to invoke when the current spaces layout changes |
onNone | an operator to invoke when the current sample changes |
onNone | an operator to invoke when the current selected samples changes |
onNone | an operator to invoke when the current selected labels changes |
onNone | an operator to invoke when the current extended selection changes |
onNone | an operator to invoke when the group slice changes |
onNone | an operator to invoke when the query performance changes |
allowFalse | whether to allow multiple instances of the panel to the opened |
priority:None | the priority of the panel, used for sort order |
_builtin:False | whether the panel is a builtin panel |
Rename a sample field to a new field name.
Parameters | |
field | the name of the field to rename |
new | the new name for the field |
Set the active fields in the App.
Parameters | |
fields:None | the possibly-empty list of fields or embedded.fields to set |
Set the entire data of the specified panel in the App.
Parameters | |
data | the data to set |
panelNone | the optional ID of the panel to clear. If not provided, the ctx.panel_id will be used |
Set the entire state of the specified panel in the App.
Parameters | |
state | the state to set |
panelNone | the optional ID of the panel to clear. If not provided, the ctx.panel_id will be used |
Sets the current spaces in the App.
Parameters | |
spaces:None | a fiftyone.core.odm.workspace.Space to load |
name:None | the name of the workspace to load |
Set the current view in the App.
Parameters | |
view:None | a fiftyone.core.view.DatasetView to load |
name:None | the name of a saved view to load |
Show output in the specified panel in the App.
Parameters | |
output | the output to show |
panelNone | the optional ID of the panel to clear. If not provided, the ctx.panel_id will be used |
Show specific samples, optionally using extended selection in the App.
Parameters | |
samples | a list of sample IDs to show |
useFalse | whether to use the extended selection feature |
Split the panel with the given layout in the App.
Parameters | |
name | the name of the panel to split |
layout | the layout orientation ("horizontal", "vertical") |
Test the operator with given parameters.
Parameters | |
operator | the operator to test |
raw | raw parameters for the operator |