Skip to main content

📦 Installation

You need conda (Miniforge, Miniconda or Anaconda). Download the environment file and create the environment:

curl -O https://raw.githubusercontent.com/mrc-ide/KR_simulator/main/environment-user.yml
conda env create -f environment-user.yml
conda activate krsim

The environment is called krsim. It contains krsim, its dependencies, and Jupyter with matplotlib, so you can also run the tutorials on your own computer instead of in Google Colab.

Check the install

With the environment active, run:

krsim --help

It lists every command. krsim <command> --help lists every option for one command.

Update

pip does not reinstall krsim while the version number is unchanged, so force it to fetch the latest code:

pip install --force-reinstall --no-deps git+https://github.com/mrc-ide/KR_simulator.git

Next steps

Work through the tutorial, starting with the quick start.