mario.models.install
- mario.models.install(model: str, *, ref: str | None = None) str#
Install a catalogued model into the current Python environment with pip.
- Parameters:
model (str) – Name of a model in the MARIO catalogue.
ref (str, optional) – Branch, tag or full commit SHA in the listed repository. The default selects a pinned source revision. The command requires Git and pip.
- Returns:
str – The full commit SHA selected for installation.
Start a new Python session after switching a model revision. pip resolves
dependencies with the installed version of MARIO held fixed.