Dagster Webserver

1.12.22 · active · verified Thu Apr 09

Dagster Webserver provides the web-based user interface (UI) for Dagster, a Python library for building data applications. It allows users to view and interact with Dagster objects such as assets, jobs, schedules, and launches runs. The project is actively maintained with frequent minor and patch releases, often on a weekly or bi-weekly basis. The current version is 1.12.22.

Warnings

Install

Quickstart

The `dagster-webserver` is typically launched via the `dagster dev` or `dg dev` command-line interface, which starts both the webserver and the Dagster daemon for local development. After installing, create a simple Dagster asset definition in a Python file (e.g., `definitions.py`) and then run `dagster dev -f definitions.py` from your project directory. This will make the UI accessible in your browser, usually at `http://localhost:3000`.

# 1. Create a directory for your project, e.g., `my_dagster_project`
# 2. Inside `my_dagster_project`, create a file named `definitions.py`:
# definitions.py
from dagster import Definitions, asset

@asset
def hello_world():
    """A simple asset that prints a message."""
    print("Hello, Dagster!")

defs = Definitions(assets=[hello_world])

# 3. From the `my_dagster_project` directory, run the Dagster webserver:
#    (Ensure you have `dagster-webserver` installed in your environment)
#    The `dagster dev` command will launch both the webserver and the daemon.
#    It will serve the Dagster UI at http://localhost:3000.
#    You can also specify the file with -f definitions.py
#    If you create a workspace.yaml file, you can run 'dagster dev' without arguments.
#    For this quickstart, running `dagster dev -f definitions.py` in the project root is sufficient.

# To run in terminal:
# cd my_dagster_project
# dagster dev -f definitions.py

view raw JSON →