knitr::opts_chunk$set(echo = TRUE)
Python example to launch a long running pipeline step by calling a Cortex API endpoint and passing in the query needed to kick-off the process.
Additionally, subsequent requests are made to check completion of long-running processes.
Cortex API provides endpoints that serve asyncronous analytics capabilities.
import requests url = 'https://icecube.hpds.network/ocpu/user/bobbyf/library/cortexapi/R/indexcases' data = "this is a query passed to the cortex API to launch" r = requests.post(url, data=data) r.status_code
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.