Tethys Platform
Table Of Contents
Table Of Contents

New Tethys App Project

Last Updated: May 2022

1. Setting up the scaffold

Tethys Platform provides an easy way to create new app projects called a scaffold. The scaffold generates a Tethys app project with the minimum files and the folder structure that is required (see App Project Structure).

Create a new app for this tutorial as follows:

  1. Activate the Tethys conda environment:

    conda activate tethys
    
  2. Scaffold a new app named dask_tutorial:

    tethys scaffold dask_tutorial
    
  3. Install the app in development mode:

    cd tethysapp-dask_tutorial
    tethys install -d
    
  4. Start the Tethys development server:

    tethys manage start
    

2. Dask

Documentation for Dask may be found at https://dask.org

Dask is a tool for natively scaling and parallelizing python. It can broadly be categorized into dynamic task scheduling, and "big data" collections.

Dask Delayed tasks operate lazily. This means that execution is split onto a separate thread for completion and then return.

Dask Distributed is a tool for managing a medium sized cluster. See https://distributed.readthedocs.io/en/latest/