API Reference¶
Full API documentation for all public classes in mlflow-widgets. Generated automatically from source code docstrings.
Widgets¶
These classes inherit from anywidget.AnyWidget and render interactive UI in notebooks:
| Class | Description |
|---|---|
MlflowChart |
Live-updating canvas line chart for MLflow metrics |
MlflowRunTable |
Sortable HTML table of experiment runs |
MlflowParallelCoordinates |
Parallel coordinates chart for hyperparameter comparison |
Helpers¶
| Class | Description |
|---|---|
MlflowRunSelector |
Pure Python helper returning pandas DataFrames for run selection |
Architecture¶
All widgets follow the same data flow pattern:
- Python fetches data from MLflow (via
MlflowClientor REST API fallback withurllib) - Data is passed to JavaScript through traitlets (synced traits tagged with
sync=True) - JavaScript handles rendering using vanilla DOM and Canvas APIs
The _do_refresh integer traitlet is used for manual refresh signals (JS increments, Python observes). Auto-polling uses threading.Timer in Python.