Widgets¶
Jupyter (ipywidgets) interfaces. They do not work in marimo; the marimo notebooks build
the same choices from mo.ui elements on the same core functions.
omero_annotate_ai.widgets.omero_connection_widget.create_omero_connection_widget
¶
Create an OMERO connection widget.
Returns:
| Type | Description |
|---|---|
OMEROConnectionWidget
|
OMEROConnectionWidget instance |
omero_annotate_ai.widgets.omero_connection_widget.OMEROConnectionWidget
¶
omero_annotate_ai.widgets.workflow_widget.create_workflow_widget
¶
Create the workflow widget (call .display() to show it).
omero_annotate_ai.widgets.workflow_widget.WorkflowWidget
¶
Create a new training set or open one, then follow the annotation.
get_config
¶
The config a "New training set" would be created from (a fresh copy).
training_set
¶
The training set of the form, created or opened on first call.
kwargs go to :func:open_or_create.
annotate
¶
Run a session with the form's model and batch size.
Annotates the pending units, or - with Review annotated chosen for an opened set - opens the annotated units with their masks to correct them.
events
¶
Event sink: annotation progress is shown in the Progress card.
set_connection
¶
Use another OMERO connection (reloads the containers).
omero_annotate_ai.widgets.workflow_widget.open_or_create
¶
open_or_create(request: Request, conn: Any = None, *, home: str | Path | None = None, events: Callable[[Event], None] | None = None, **kwargs: Any) -> TrainingSet
Resolve a widget request to a training set.
kwargs go to :meth:TrainingSet.create / :meth:TrainingSet.open (e.g. an
image_source). For an open request, request.add images per split are
added to the set's current counts (zero adds nothing).
omero_annotate_ai.widgets.workflow_widget.NewTrainingSet
dataclass
¶
Create a training set from config.
omero_annotate_ai.widgets.workflow_widget.OpenTrainingSet
dataclass
¶
Open the set ref (table ID or folder) and add images per split.
omero_annotate_ai.widgets.training_data_widget.create_training_data_widget
¶
create_training_data_widget(connection: Any = None, *, home: str | Path | None = None, show_export: bool = True) -> TrainingDataWidget
Create the training-data widget (call .display() to show it).
show_export=False keeps only the set picker, for notebooks that export
differently (e.g. a BioImage Archive submission).
omero_annotate_ai.widgets.training_data_widget.TrainingDataWidget
¶
TrainingDataWidget(connection: Any = None, *, home: str | Path | None = None, show_export: bool = True)
Pick a training set (OMERO or local) and export it into the training layout.
selected
property
¶
The picked set: a table ID (OMERO) or a folder (local); None if none.
get_selected_table_id
¶
The picked set's table ID; None for a local set or no selection.
selected_config
¶
The picked set's config (read-only copy); None if none is picked.
export
¶
Export the picked set with the form's options; returns the export result.
set_connection
¶
Use another OMERO connection (reloads the containers).