phenotypic.gui package#
PhenoTypic GUI components for interactive pipeline building.
This module provides Panel-based interactive interfaces for building and testing ImagePipelines in Jupyter notebooks.
- Requires optional dependencies:
pip install phenotypic[gui]
- or with uv:
uv sync –extra gui
Components: - PipelineBuilder: Main GUI for building pipelines interactively - InstanceManager: Workspace manager for saving/loading pipelines - OperationRegistry: Metadata registry for discovering operations
Global session management (like napari): - get_global_manager(): Get or create global InstanceManager - reset_global_manager(): Reset with new workspace
Examples
Basic usage (no pn.extension() needed in Jupyter):
>>> from phenotypic.gui import PipelineBuilder
>>> from phenotypic.data import load_synth_yeast_plate
>>>
>>> image = load_synth_yeast_plate()
>>> builder = PipelineBuilder(image=image) # Auto-uses global manager
>>> builder.panel() # Auto-initializes Panel in Jupyter
Manual manager (advanced):
>>> from phenotypic.gui import PipelineBuilder, InstanceManager
>>> manager = InstanceManager(workspace="./my_pipelines")
>>> builder = PipelineBuilder(manager=manager, image=image)
>>> builder.panel()
- phenotypic.gui.__getattr__(name: str)[source]#
Lazy import with helpful error message for missing dependencies.
- Parameters:
name (str) – Attribute name to import
- Returns:
Requested module/class
- Raises:
ImportError – If GUI dependencies not installed
AttributeError – If attribute doesn’t exist