diff --git a/config/notebooks/notebooks-failcheck.json b/config/notebooks/notebooks-failcheck.json new file mode 100644 index 0000000..a596b87 --- /dev/null +++ b/config/notebooks/notebooks-failcheck.json @@ -0,0 +1,11 @@ +{ +"notebooks" : [ + { + "name" : "pi_quick", + "filepath" : "https://raw.githubusercontent.com/wfau/aglais-testing/main/notebooks/pi_fail.json", + "totaltime" : 10, + "results" : [ "3.141210"] + } + +] +} diff --git a/notebooks/pi_fail.json b/notebooks/pi_fail.json new file mode 100644 index 0000000..7b9ca89 --- /dev/null +++ b/notebooks/pi_fail.json @@ -0,0 +1 @@ +{"paragraphs":[{"user":"admin","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{},"editorSetting":{"language":"python","editOnDblClick":false,"completionKey":"TAB","completionSupport":true},"editorMode":"ace/mode/python"},"settings":{"params":{},"forms":{}},"apps":[],"jobName":"paragraph_1607360594831_1744657714","id":"20201207-170314_91795958","dateCreated":"2020-12-07T17:03:14+0000","status":"FINISHED","progressUpdateIntervalMs":500,"focus":true,"$$hashKey":"object:2296","text":"%spark.pyspark\nimport random \nNUM_SAMPLES = 20000000\n\ndef inside(p):\n x, y = r.random(), random.random()\n return x*x + y*y < 1\n\ncount = sc.parallelize(range(0, NUM_SAMPLES)) \\\n .filter(inside).count()\nprint (\"Pi is roughly %f\" % (4.0 * count / NUM_SAMPLES))\n","dateUpdated":"2020-12-07T17:05:41+0000","dateFinished":"2020-12-07T17:08:12+0000","dateStarted":"2020-12-07T17:05:41+0000","results":{"code":"SUCCESS","msg":[{"type":"TEXT","data":"Pi is roughly 3.141691\n"}]}}],"name":"stv/pi","id":"2FRYUY6SK","noteParams":{},"noteForms":{},"angularObjects":{"md:shared_process":[],"python:shared_process":[],"angular:shared_process":[],"spark:shared_process":[]},"config":{"isZeppelinNotebookCronEnable":false,"looknfeel":"default","personalizedMode":"false"},"info":{}}