Dagit Web UI
Dagit is the web-based user interface for Dagster, providing observability, operational control, and debugging capabilities for data pipelines. It allows users to visualize assets, jobs, runs, schedules, and sensors defined within a Dagster project. Dagit's versioning is tightly coupled with the core Dagster library, typically released in sync with major and minor Dagster updates.
Warnings
- breaking Dagit (and the underlying `dagster-webserver` package) versions must closely match the `dagster` core library version. Mismatched versions (e.g., `dagster==1.12.0` and `dagit==1.13.0`) can lead to runtime errors or unexpected UI behavior.
- gotcha Dagit is primarily a CLI executable (`dagit`) used to launch the Dagster UI. It is not designed to be imported as a Python module within user-defined Dagster code (e.g., `import dagit`).
- breaking Since `dagster` version 1.12.18, `psycopg2-binary` is no longer a transitive dependency of `dagster-postgres`. If your Dagster project utilizes `dagster-postgres` and relies on `psycopg2-binary`, you must explicitly install it.
- gotcha Running `dagit` without specifying any Dagster definitions (e.g., via `-f`, `-m`, or a `workspace.yaml` file) will result in an empty UI. Dagit needs to know where to find your code.
Install
-
pip install dagit
Imports
- N/A
dagit is a CLI tool, not a Python library for direct import.
Quickstart
from dagster import asset, Definitions, job
@asset
def hello_asset():
return "Hello, Dagster World!"
@job
def my_simple_job():
hello_asset()
defs = Definitions(assets=[hello_asset], jobs=[my_simple_job])
# Save this as `my_repo.py` then run `dagit -f my_repo.py` in your terminal.