Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

License DesignSafe Authors

A guide to running computational workflows on DesignSafe, from interactive exploration in a Jupyter notebook to production-scale simulations on TACC supercomputers.

Contents

Quick example

Submit and monitor an HPC job from a Jupyter notebook using dapi:

from dapi import DSClient

ds = DSClient()

input_uri = ds.files.to_uri("/MyData/analysis/input/")

job_request = ds.jobs.generate(
    app_id="opensees-mp-s3",
    input_dir_uri=input_uri,
    script_filename="model.tcl",
    max_minutes=60,
    allocation="your_allocation",
)

job = ds.jobs.submit(job_request)
job.monitor()

For dapi installation, authentication, and API reference, see the dapi documentation.