ZenML is a unified MLOps framework that extends battle-tested machine learning operations principles to support the entire AI stack, from classical machine learning models to advanced AI agents.
Utility functions for dashboard, environment operations, and other helpers.
def show(port: int = None):
"""
Opens the ZenML dashboard in a browser.
Starts the ZenML dashboard server (if not already running) and
opens it in the default web browser.
Parameters:
- port: Port number to use (optional, default: 8237)
Example:
```python
from zenml import show
# Open dashboard on default port
show()
# Open dashboard on custom port
show(port=8080)
```
Note: Also available as:
```python
from zenml.utils.dashboard_utils import show_dashboard
show_dashboard()
```
"""Import from:
from zenml import showfrom zenml import show
# Open dashboard
show()from zenml import show
# Open on specific port
show(port=8080)from zenml import pipeline, step, show
from zenml.client import Client
@step
def train_model(data: list) -> dict:
return {"model": "trained"}
@pipeline
def training_pipeline():
train_model([1, 2, 3])
if __name__ == "__main__":
# Run pipeline
training_pipeline()
# Open dashboard to view results
show()Install with Tessl CLI
npx tessl i tessl/pypi-zenml