Skip to content
MARIO
Get started
  • Installation
  • Table formats
  • Scenarios
Docs
  • Data sources
  • Working with a database
  • Calculations and analysis
  • Transformations and scenarios
  • Configuration
  • API reference
Explorer
  • Classifications
  • Indicators
  • Analyses
Resources
  • Tutorials
  • Model Gallery
  • Teaching
  • Projects & Publications
  • Downloadable material

Documentation

  • Overview
  • Data sources
  • Working with a database
  • Calculations and analysis
  • Transformations and scenarios
  • Configuration
    • Computation settings
    • Customize names and aliases
    • Setup a model from the gallery
  • API reference
Documentation pagesPages
  • Overview
  • Data sources
  • Working with a database
  • Calculations and analysis
  • Transformations and scenarios
  • Configuration
    • Computation settings
    • Customize names and aliases
    • Setup a model from the gallery
  • API reference
On this page
  • Install a model
  • Open a project
Docs/ Configuration/ Guide

Setup a model from the gallery

Install a model from the Gallery and open it as a MARIO project.

Models in the Model Gallery are built with MARIO and distributed from their own repositories. Install one and open it as a project in your Python session. Each project has a workspace where you can edit its inputs.

Install a model#

Install the current MARIO source checkout into your Python environment and make sure Git and pip are available. Pass a model identifier from the installation catalogue to mario.models.install(). This example installs pv-hlca.

import mario

commit = mario.models.install("pv-hlca")

MARIO installs the pinned model revision and returns its Git commit SHA. To try a development version, pass a branch, tag or full commit SHA as ref.

commit = mario.models.install("pv-hlca", ref="branch-name")

If you use the released mariopy package, follow the direct installation instructions in the model’s guide. For changes to the model code, use an editable checkout of its repository.

Open a project#

Start a new Python session after installing or updating a model. Pass its registered name and a workspace directory to mario.model_setup().

import mario

model = mario.model_setup("pv-hlca", workspace="./pv-study")

Check the model’s guide for data requirements, editable inputs, available scenarios and results. For this example, continue with PV-HLCA · Photovoltaic supply chains.

On this page

  • Install a model
  • Open a project
MARIO

Multifunctional Analysis of Regions through Input-Output

Get startedDocsExplorerResources Changelog GitHubPyPI

© 2026, Lorenzo Rinaldi, Mohammad Amin Tahavori, Nicolo Golinucci AI disclosure. This documentation and its database explorer were written and built with AI agents, then reviewed by the MARIO team, who remain responsible for their content. Spotted an error? Tell us on GitHub Issues.

Model Gallery
Latest Model Gallery
Esc

    Use the arrow keys to move and Enter to open.