Install xso

Required dependencies

Optional dependencies

  • graphviz (for model visualization)

  • tqdm (for progress bars)

Install using pip

The easiest way to install xarray-simlab-ode and its required dependencies is using pip:

pip install xso

Install using conda

Currently, xarray-simlab-ode is not available via conda. However, you can install all required dependencies by installing xarray-simlab and scipy using conda:

conda install -c conda-forge xarray-simlab scipy

Then just install xarray-simlab-ode in the same environment using pip:

pip install xso

Install from source

To install xarray-simlab-ode from source (i.e. the actively developed version on GitHub), be sure you have the required dependencies installed first. You might consider using conda to install them:

conda install attrs xarray dask zarr numpy scipy xarray-simlab pip -c conda-forge

A good practice (especially for development purpose) is to install the packages in a separate environment, e.g. using conda:

conda create -n xso_env python attrs xarray dask zarr numpy scipy xarray-simlab pip -c conda-forge

source activate xso_env

Then you can clone the xarray-simlab git repository and install it using pip locally:

git clone https://github.com/ben1post/xarray-simlab-ode
cd xarray-simlab-ode
pip install .

For development purpose, use the following command:

pip install -e .

Import xarray-simlab-ode

To make sure that xarray-simlab-ode is correctly installed, try to import it by running this line:

python -c "import xso"