From d3064d9fdc65bb780d23aaccc7e69a63ed7a695e Mon Sep 17 00:00:00 2001 From: stvoutsin Date: Thu, 12 Oct 2023 22:22:31 +0300 Subject: [PATCH 1/2] Create pi_fail.json file --- notebooks/pi_fail.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 notebooks/pi_fail.json 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":{}} From 3e51fe65829028172dec834e1c46733f47168359 Mon Sep 17 00:00:00 2001 From: stvoutsin Date: Thu, 12 Oct 2023 22:24:48 +0300 Subject: [PATCH 2/2] Create notebooks-failcheck.json file --- config/notebooks/notebooks-failcheck.json | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 config/notebooks/notebooks-failcheck.json 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"] + } + +] +}