app
anomaly_match_ui.app
¶
Entry point for the AnomalyMatch UI with screen-based navigation.
AnomalyMatchApp(session, ui_scale=1.0)
¶
Top-level application with screen-based navigation.
Creates a container widget and manages screen transitions. Each screen is lazily instantiated on first navigation and re-used on subsequent visits.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
session
|
Session
|
The backend Session instance. |
required |
ui_scale
|
float
|
UI scale factor (1.0 = default). |
1.0
|
Source code in anomaly_match_ui/app.py
navigate_to(screen_name, **kwargs)
¶
Navigate to a named screen.
If the current screen implements on_leave it is called first.
The target screen is lazily created if it doesn't exist yet, then
on_enter is called.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
screen_name
|
str
|
Registered name of the target screen. |
required |
**kwargs
|
Any
|
Extra keyword arguments forwarded to the screen factory. |
{}
|
Source code in anomaly_match_ui/app.py
show()
¶
Display the app in the current Jupyter notebook output cell.
Source code in anomaly_match_ui/app.py
start_ui(session=None, *, ui_scale=1.0)
¶
Start the AnomalyMatch UI.
This is the main entry point for launching the UI. When called without arguments it creates a default session automatically — all configuration (data paths, normalisation, model) is then done interactively via the setup screens.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
session
|
Session | None
|
An AnomalyMatch Session instance. When |
None
|
ui_scale
|
float
|
UI scale factor (1.0 = default). |
1.0
|
Returns:
| Type | Description |
|---|---|
AnomalyMatchApp
|
The created AnomalyMatchApp instance. |
Example
from anomaly_match_ui import start_ui app = start_ui()