Skip to main content

PyPI Tests Python coverage Web coverage

Calliope Studio

Calliope Studio is a web-based user interface for the Calliope energy system modelling framework. It lets you define, edit, validate, run, and analyse Calliope models, all in a single tool. It runs in a browser directly on your computer.

The results view on an example model.

Installation

With uv:

# One-time setup for uv on macOS and Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# One-time setup for uv on Windows
#   powershell -c "irm https://astral.sh/uv/install.ps1 | iex"

uv tool install calliope-studio

Then:

calliope-studio my-model      # a model folder containing model.yaml or a solved results .nc
calliope-studio               # no argument opens Calliope Studio with a model picker

To quit Calliope Studio, close its terminal window or press Ctrl+C inside it.

[!IMPORTANT] Calliope needs a solver to actually solve models. You can still use Studio to edit a model or analyse results that somebody else solved, but pressing Run will fail without a solver. Refer to the Calliope documentation for solver installation.

Development builds

To install a development build based on the latest main branch commit:

uv tool install --reinstall --prerelease allow \
  --find-links https://github.com/sjpfenninger/calliope-studio/releases/expanded_assets/dev \
  calliope-studio

The same command updates an existing install to the newest development build. To go back to the stable (released) version:

uv tool install --reinstall calliope-studio

FAQ

  • Why does "Run" fail with a solver error? See the note above: you probably have no solver installed.
  • Why is the list of models wrong or outdated? The list of models you have opened lives in a small registry file, separate from the models themselves. Its location is reported as registry_path by http://127.0.0.1:8000/api/health while Calliope Studio is running. Deleting it resets the list without actually touching any of your models.
  • Where are model results stored? When running a model from inside Calliope Studio, results are saved in a calliope-studio/ folder next to the model.yaml file. This folder is created automatically when running a model for the first time and comes with its own .gitignore file.

Development

Requires pixi.

pixi run serve      # API on port 8000 with auto-reload
pixi run web-dev    # Vite dev server, proxying /api to port 8000

serve opens ./example-model, scaffolding it from Calliope's national_scale template on first use.

Try pixi task list to see all the available development tasks. Some relevant ones:

  • pixi run solve-examples solves both Calliope example models into examples/nc_files/. The data tests and the results smoke check read these files, and skip when they are absent.
  • pixi run test runs the Python test suite.
  • pixi run -e build build produces a wheel and an sdist with the frontend compiled in (the packaging tools live in the build environment).

The frontend tests run from web/:

cd web
pnpm test

Pixi is configured with a gurobi environment to test with Gurobi (needs a license):

pixi run -e gurobi calliope-studio my-model   # Gurobi available as a solver

License

AGPL-3.0-or-later. See LICENSE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

calliope_studio-0.1.1.tar.gz (4.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

calliope_studio-0.1.1-py3-none-any.whl (4.2 MB view details)

Uploaded Python 3

File details

Details for the file calliope_studio-0.1.1.tar.gz.

File metadata

  • Download URL: calliope_studio-0.1.1.tar.gz
  • Upload date:
  • Size: 4.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for calliope_studio-0.1.1.tar.gz
Algorithm Hash digest
SHA256 417379d0822e3cefd75236dc2a3c903fe5e30d1868c34eed489adc0fd8b40fd0
MD5 7092bc2f5763b2d63d651821516bf8b3
BLAKE2b-256 04249c6e64b9d1e231dc30be8fe1876b06eccbbd8e77b2dfe55d1c13b422fabf

See more details on using hashes here.

Provenance

The following attestation bundles were made for calliope_studio-0.1.1.tar.gz:

Publisher: release.yml on sjpfenninger/calliope-studio

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file calliope_studio-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for calliope_studio-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 74f54d32eee24cbc5fe611e30b6777ea23b58edfad524fc499f9fcb5e6f82b31
MD5 740c7adbdc6a3c9249f3559901fa76de
BLAKE2b-256 fb0cd6d58f3fc47f22e61c57d9e6845af3675768ee7e6620a64e73a34c266487

See more details on using hashes here.

Provenance

The following attestation bundles were made for calliope_studio-0.1.1-py3-none-any.whl:

Publisher: release.yml on sjpfenninger/calliope-studio

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.2.0

2 files

0.1.2

2 files

This release

0.1.1 This release

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page