Implementation:Interpretml Interpret AutoVisualizeProvider
Appearance
| Field | Value |
|---|---|
| Sources | InterpretML |
| Domains | Visualization, Infrastructure |
| Last Updated | 2026-02-07 12:00 GMT |
Overview
AutoVisualizeProvider is a concrete tool for auto-detecting the execution environment and selecting visualization providers provided by the InterpretML library.
Description
The AutoVisualizeProvider class lazily initializes on first use, running environment detection to determine whether to use InlineProvider (for notebooks/cloud) or DashProvider (for local). It delegates all render() calls to the selected provider.
Usage
This class is instantiated automatically by the interpret package. Users rarely need to interact with it directly unless customizing the visualization provider.
Code Reference
Source Location
- Repository
interpretml/interpret- File
python/interpret-core/interpret/provider/_visualize.py- Lines
- 21--67
Signature
class AutoVisualizeProvider(VisualizeProvider):
def __init__(self, app_runner=None, **kwargs):
Import
from interpret.provider import AutoVisualizeProvider
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
app_runner |
Optional[AppRunner] | No | Optional app runner for serving visualizations |
**kwargs |
keyword arguments | No | Passed to the concrete provider upon initialization |
Outputs
| Name | Type | Description |
|---|---|---|
| AutoVisualizeProvider instance | AutoVisualizeProvider | Provider instance that auto-detects environment and delegates rendering |
Usage Examples
Default Auto-Detection
from interpret import set_visualize_provider
from interpret.provider import AutoVisualizeProvider
# Default behavior (auto-detection) - usually no action needed
# To customize:
provider = AutoVisualizeProvider()
set_visualize_provider(provider)
Related Pages
Page Connections
Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment