Code Monkey home page Code Monkey logo

cybergis-compute-example-template's Introduction

CyberGIS-Compute Hands-On Demo

In this example, we will show you how to add a manifest.json file to an already existing repo so it can run on cybergis-compute.

Add manifest.json file

Easy as it sounds, add a manifest.json file to this repo. This will define how your project will run on the HPC. In this example, we will keep this as simple as possible, but for more reading, check out https://github.com/cybergis/cybergis-compute-hello-world/blob/main/README.md for a more in-depth example of information that can be added to the manifest file.

Add this to the manifest.json file:

{
"name": "hello world",
"container": "python",
"pre_processing_stage": "python preprocessing.py",
"execution_stage": "python main.py",
"post_processing_stage": "python postprocessing.py",
"slurm_input_rules": {
  "time": {
    "max": 50,
    "min": 10,
    "default_value": 20,
    "step": 1,
    "unit": "Minutes"
  },
    "num_of_task": {
     "max": 6,
     "min": 1,
     "default_value": 4,
     "step": 1
     }
  },
"require_upload_data": false
}

Contact Compute team

For security reasons, all the repos that can be run on Cyber-GIS compute must be verified by the Compute team. For this example, we have already verified your repo, but ordinarily you would need to reach out at this point in the process.

Run your code!

Now, you can head over to CyberGISX to run your code. Make a new notebook and add this code

Cell 1:

from cybergis_compute_client import CyberGISCompute
cybergis = CyberGISCompute(url="cgjobsup.dev.cigi.illinois.edu", isJupyter=True, protocol="HTTPS", port=443, suffix="v2")

Cell 2:

cybergis.show_ui()

cybergis-compute-example-template's People

Contributors

taylorziegler avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.