This repository contains materials for the xarray tutorial.
There are two different ways in which you can set up and go through the tutorial materials. Both of which are outlined in the table below.
Method | Setup | Description |
---|---|---|
Binder | Run the tutorial notebooks on mybinder.org without installing anything locally. | |
Local install | Instructions | Download the tutorial notebooks and install the necessary packages (via conda ) locally. Setting things up locally can take a few minutes, so we recommend going through the installation steps prior to the tutorial. |
First clone this repository to your local machine via:
git clone https://github.com/andersy005/xarray-tutorial
If you do not already have the conda package manager installed, please follow the instructions here.
Navigate to the xarray-tutorial/
directory and create a new conda environment with the required
packages via:
cd xarray-tutorial
conda env update --file binder/environment.yml
This will create a new conda environment named "xarray-tutorial".
Next, activate the environment:
conda activate xarray-tutorial
To download sample datasets, run the 00-download-data.ipynb
notebook:
cd notebooks/
nbterm --run 00-download-data.ipynb
Finally, launch JupyterLab with:
jupyter lab