Implementation:Evidentlyai Evidently Workspace Create
Appearance
| Knowledge Sources | |
|---|---|
| Domains | ML_Monitoring, Infrastructure |
| Last Updated | 2026-02-14 12:00 GMT |
Overview
Concrete factory method for creating local Evidently Workspace instances provided by the Evidently library.
Description
Workspace.create(path) is a classmethod that creates a new local file-based Workspace instance. The Workspace constructor initializes local storage including project state, snapshot storage, dataset management, artifact storage, and tracing.
Usage
Call Workspace.create() at the start of a monitoring dashboard setup workflow.
Code Reference
Source Location
- Repository: evidently
- File: src/evidently/ui/workspace.py
- Lines: L731-780 (Workspace class), L1002-1012 (create classmethod)
Signature
class Workspace(WorkspaceBase):
def __init__(self, path: str):
"""Initialize a local workspace with file-based storage."""
@classmethod
def create(cls, path: str = "workspace") -> "Workspace":
"""Create a new workspace instance.
Args:
path: Directory path for workspace storage (default: "workspace").
Returns:
Workspace instance.
"""
Import
from evidently.ui.workspace import Workspace
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| path | str | No | Directory path for workspace storage (default: "workspace") |
Outputs
| Name | Type | Description |
|---|---|---|
| return value | Workspace | Local file-based workspace instance |
Usage Examples
from evidently.ui.workspace import Workspace
# Create a local workspace
ws = Workspace.create("my_monitoring")
# Or with default path
ws = Workspace.create() # Creates "workspace" directory
Related Pages
Implements Principle
Requires Environment
Page Connections
Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment