In [34]:
import sys
sys.path.append("../app")
from webview import WebView
from webview.run import Run
from webview.utils import Utils
url = 'https://localhost:9443/kepler'
# disable ssl verify warnings
import requests
requests.packages.urllib3.disable_warnings()
In [35]:
webview = WebView(url=url, username='crawl', password='test', debug=False)
# get runs and workflow names
runs = webview.runs()
#runs.names()
In [36]:
# load a run
run = runs.latest('kepler_UNAVCO-GPS_V5')
run.status()
Out[36]:
In [37]:
# get the provenance trace (PROV)
#run.prov()
In [38]:
#run.prov(file_name='prov-default.kar')
In [39]:
# get the workflow
run.workflow('workflow.kar')
Out[39]:
In [45]:
# get the screenshot
filename = run.screenshot()
from IPython.display import Image
Image(filename, width=600)
Out[45]:
In [43]:
# look at parameters
run.parameters()
Out[43]:
In [44]:
run.ro_bundle()
Out[44]:
In [ ]: