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.2.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.2-py3-none-any.whl (4.3 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: calliope_studio-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 ef6b0235c958c5244c2d07976d15649f620942f74563b9c5841e38d3b6e0757e
MD5 3fc5769eb79ad6e02519cde5699c4dc9
BLAKE2b-256 810e854b3953f9fc75278ca6de25a881337bfc15993f8369c79d519844360695

See more details on using hashes here.

Provenance

The following attestation bundles were made for calliope_studio-0.1.2.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.2-py3-none-any.whl.

File metadata

File hashes

Hashes for calliope_studio-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d6e5995ed1a87da60a629474411c4d681e96c4ce326df4675a45bbe84d8b605d
MD5 8e4e3810ce85c10d772bc8874e3e9578
BLAKE2b-256 97be94c24c5d6ab0adfcf2ed09d4e3e9a78c4d6dd22214b25bcdeb059ec0b304

See more details on using hashes here.

Provenance

The following attestation bundles were made for calliope_studio-0.1.2-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

This release

0.1.2 This release

2 files

0.1.1

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