This repository contains iPython notebook tutorials that explain how to access the iSDAsoil data. For more information about isdasoil, visit https://www.isda-africa.com/isdasoil.
There are a few different ways to get an iPython notebook up and running. We have created configs for as many options as feasible. You have 2 main options - running a Jupyter Notebook with a cloud provider (e.g. Google or AWS), or running the tutorial locally.
Google colab is a free service operated by Google to host iPython notebooks. The only requirement is a Google account. The advantage of this approach is that all requirements are automatically installed, so you can just open the notebook and get started straight away. Note that because this is a cloud service, any data that is downloaded in code will then need to be downloaded locally, should you wish to access the data on your machine.
To open this tutorial in colab, visit: https://colab.research.google.com/github/iSDA-Africa/isdasoil-tutorial/blob/main/iSDAsoil-tutorial.ipynb. Be sure to run the first cell that installs the requirements-googlecolab.txt
file.
Equally as easy to set up, the only requirement is an AWS accout. Follow the link below to set up a hosted Jupyter Notebook on AWS Sagemaker, with all requirements preinstalled. Setup can take a few minutes. Once the notebook is set up, be sure to select the isdasoil-tutorial
Python kernel.
- For those needing to run the iPython locally, the easiest way is to use the environment manager conda. We've created a conda
environment.yml
config file, with all the requirements specified. Once conda is installed, it's as simple as running the commandconda env create -f environment.yml
in the directory where theenvironment.yml
file is located.
- The final option is to use pip with a virtual environment. This relies on external dependencies such as the correct version of the GDAL library to be installed. Run the following commands in the folder where you've downloaded the repo to set up the virtual environment:
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt