Installation
Requirements
Install these tools before creating a project:
Install uv
Alternatively, use a package manager:
Install utility-viz
utility-viz 2.0 is in beta
utility-viz 2.0.0b1 is a pre-release. The stable line stays econ-viz 1.x until 2.0 final is released.
Pre-releases are skipped by default, so the commands below pass --pre (pip) or --prerelease allow (uv).
Coming from econ-viz? See Migrating from econ-viz.
With pip:
With uv, create a project and add it as a dependency:
Run scripts inside the project environment with uv run:
Optional dependencies
Extras enable features that require additional packages:
uv add --prerelease allow "utility-viz[animation]" # GIF export (Pillow)
uv add --prerelease allow "utility-viz[interactive]" # notebook widgets
uv add --prerelease allow "utility-viz[all]" # all extras
Global CLI installation
To use only the command-line interface, install it as a standalone tool so utility-viz is available on your PATH:
Development setup
uv sync installs the dev dependency group by default; --all-extras also installs every optional dependency. Run the test suite with: