{"id":1979,"library":"dagster-webserver","title":"Dagster Webserver","description":"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.","status":"active","version":"1.12.22","language":"en","source_language":"en","source_url":"https://github.com/dagster-io/dagster","tags":["data orchestration","etl","mlops","workflow management","ui","web server"],"install":[{"cmd":"pip install dagster-webserver","lang":"bash","label":"Install Dagster Webserver"}],"dependencies":[{"reason":"Core Dagster library, providing the underlying data orchestration framework and APIs that the webserver interacts with.","package":"dagster","optional":false},{"reason":"Required by the core `dagster` package as of recent versions, may cause conflicts with older Pydantic installations.","package":"pydantic>=2","optional":false},{"reason":"Formerly a transitive dependency of `dagster-postgres`, now requires explicit installation if `dagster-postgres` is used. Often discouraged for production use.","package":"psycopg2-binary","optional":true}],"imports":[],"quickstart":{"code":"# 1. Create a directory for your project, e.g., `my_dagster_project`\n# 2. Inside `my_dagster_project`, create a file named `definitions.py`:\n# definitions.py\nfrom dagster import Definitions, asset\n\n@asset\ndef hello_world():\n    \"\"\"A simple asset that prints a message.\"\"\"\n    print(\"Hello, Dagster!\")\n\ndefs = Definitions(assets=[hello_world])\n\n# 3. From the `my_dagster_project` directory, run the Dagster webserver:\n#    (Ensure you have `dagster-webserver` installed in your environment)\n#    The `dagster dev` command will launch both the webserver and the daemon.\n#    It will serve the Dagster UI at http://localhost:3000.\n#    You can also specify the file with -f definitions.py\n#    If you create a workspace.yaml file, you can run 'dagster dev' without arguments.\n#    For this quickstart, running `dagster dev -f definitions.py` in the project root is sufficient.\n\n# To run in terminal:\n# cd my_dagster_project\n# dagster dev -f definitions.py\n","lang":"python","description":"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`."},"warnings":[{"fix":"Upgrade your Python environment to 3.10 or higher. Ensure your `requires_python` in `pyproject.toml` or `setup.py` reflects this.","message":"Dagster has dropped support for Python 3.9, which has reached its end-of-life. The minimum supported Python version is now 3.10. Projects on older Python versions will need to upgrade.","severity":"breaking","affected_versions":">=1.12.0"},{"fix":"Update your `pydantic` dependency to version 2 or higher. Carefully review any code relying on `pydantic` V1 features if upgrading.","message":"The core `dagster` package (and by extension, `dagster-webserver`) now requires `pydantic>=2`. This may cause conflicts with existing environments or projects that depend on an older `pydantic` version.","severity":"breaking","affected_versions":">=1.12.0"},{"fix":"Explicitly add `pip install psycopg2-binary` or `pip install psycopg2` to your project's dependencies if using `dagster-postgres`.","message":"`psycopg2-binary` has been removed as a direct dependency from `dagster-postgres` as of `dagster` 1.12.18. If your project uses `dagster-postgres` and implicitly relied on `psycopg2-binary` being installed, you will now need to explicitly add `psycopg2-binary` (or `psycopg2`) to your project's dependencies. Note that `psycopg2-binary` is generally discouraged for production environments due to its pre-compiled nature.","severity":"gotcha","affected_versions":">=1.12.18"},{"fix":"Upgrade `dagster-webserver` to version 1.12.17 or later to resolve the UI loading issue.","message":"A bug in `dagster-webserver` versions prior to 1.12.17 caused the Dagster UI to fail to load due to issues with the built webapp inclusion. Users on these specific versions would experience a non-functional UI.","severity":"gotcha","affected_versions":"<1.12.17"},{"fix":"Prefer `dg dev` over `dagster dev` when launching your local Dagster environment.","message":"The `dagster dev` command is being superseded by `dg dev` for starting a local development deployment (webserver and daemon). While `dagster dev` still works, `dg dev` is the recommended new CLI command.","severity":"deprecated","affected_versions":"All versions where `dg dev` is available."}],"env_vars":null,"last_verified":"2026-04-09T00:00:00.000Z","next_check":"2026-07-08T00:00:00.000Z"}