Skip to content

Commit 63ef83b

Browse files
Add executed notebook under notebooks/curated/EDC_first-steps.ipynb [skip ci]
1 parent dd81a16 commit 63ef83b

File tree

1 file changed

+93
-36
lines changed

1 file changed

+93
-36
lines changed

notebooks/curated/EDC_first-steps.ipynb

Lines changed: 93 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,83 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"id": "497c8ab8",
6+
"metadata": {
7+
"tags": [
8+
"papermill-error-cell-tag"
9+
]
10+
},
11+
"source": [
12+
"<span style=\"color:red; font-family:Helvetica Neue, Helvetica, Arial, sans-serif; font-size:2em;\">An Exception was encountered at '<a href=\"#papermill-error-cell\">In [1]</a>'.</span>"
13+
]
14+
},
15+
{
16+
"cell_type": "markdown",
17+
"id": "74b14ae1",
18+
"metadata": {
19+
"tags": [
20+
"papermill-error-cell-tag"
21+
]
22+
},
23+
"source": [
24+
"<span id=\"papermill-error-cell\" style=\"color:red; font-family:Helvetica Neue, Helvetica, Arial, sans-serif; font-size:2em;\">Execution using papermill encountered an exception here and stopped:</span>"
25+
]
26+
},
327
{
428
"cell_type": "code",
5-
"execution_count": null,
29+
"execution_count": 1,
630
"id": "e9eadbd8",
731
"metadata": {
832
"execution": {
9-
"iopub.execute_input": "2023-10-24T07:58:44.978293Z",
10-
"iopub.status.busy": "2023-10-24T07:58:44.977703Z",
11-
"iopub.status.idle": "2023-10-24T07:58:45.036572Z",
12-
"shell.execute_reply": "2023-10-24T07:58:45.036043Z"
33+
"iopub.execute_input": "2023-10-24T13:33:47.690978Z",
34+
"iopub.status.busy": "2023-10-24T13:33:47.690708Z",
35+
"iopub.status.idle": "2023-10-24T13:33:48.461148Z",
36+
"shell.execute_reply": "2023-10-24T13:33:48.460559Z"
1337
},
1438
"papermill": {
15-
"duration": null,
16-
"end_time": null,
17-
"exception": null,
18-
"start_time": null,
19-
"status": "completed"
39+
"duration": 0.794113,
40+
"end_time": "2023-10-24T13:33:48.462079",
41+
"exception": true,
42+
"start_time": "2023-10-24T13:33:47.667966",
43+
"status": "failed"
2044
},
2145
"tags": []
2246
},
23-
"outputs": [],
47+
"outputs": [
48+
{
49+
"data": {
50+
"text/html": [
51+
"<script type=\"text/javascript\">\n",
52+
" function toggle(id) {\n",
53+
" el = document.getElementById(id);\n",
54+
" el.style.display = el.style.display === \"none\" ? \"block\" : \"none\";\n",
55+
" }\n",
56+
" </script>"
57+
],
58+
"text/plain": [
59+
"<IPython.core.display.HTML object>"
60+
]
61+
},
62+
"metadata": {},
63+
"output_type": "display_data"
64+
},
65+
{
66+
"ename": "HTTPError",
67+
"evalue": "500 Server Error: INTERNAL SERVER ERROR for url: https://contributions-api.hub.eox.at/base-image-release-notes/user-2023.10-01",
68+
"output_type": "error",
69+
"traceback": [
70+
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
71+
"\u001b[0;31mHTTPError\u001b[0m Traceback (most recent call last)",
72+
"Cell \u001b[0;32mIn[1], line 2\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01medc\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m check_compatibility\n\u001b[0;32m----> 2\u001b[0m \u001b[43mcheck_compatibility\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43muser-2023.10-01\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mdependencies\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43m[\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mSH\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m]\u001b[49m\u001b[43m)\u001b[49m\n",
73+
"File \u001b[0;32m/home/conda/users/c06df7d8cc38dff0b6ab13f016d9cda4bb65ebb5cdefbe46dc867e3aa29b6b61-20230801-104751-102087-199-edc-2023.07-01/lib/python3.11/site-packages/edc.py:250\u001b[0m, in \u001b[0;36mcheck_compatibility\u001b[0;34m(tag, dependencies)\u001b[0m\n\u001b[1;32m 249\u001b[0m \u001b[38;5;28;01mdef\u001b[39;00m \u001b[38;5;21mcheck_compatibility\u001b[39m(tag: \u001b[38;5;28mstr\u001b[39m, dependencies: List[\u001b[38;5;28mstr\u001b[39m] \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;01mNone\u001b[39;00m) \u001b[38;5;241m-\u001b[39m\u001b[38;5;241m>\u001b[39m \u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[0;32m--> 250\u001b[0m \u001b[43m_check_base_image_tag\u001b[49m\u001b[43m(\u001b[49m\u001b[43mtag\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 251\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m dependencies:\n\u001b[1;32m 252\u001b[0m _check_dependencies(dependencies)\n",
74+
"File \u001b[0;32m/home/conda/users/c06df7d8cc38dff0b6ab13f016d9cda4bb65ebb5cdefbe46dc867e3aa29b6b61-20230801-104751-102087-199-edc-2023.07-01/lib/python3.11/site-packages/edc.py:297\u001b[0m, in \u001b[0;36m_check_base_image_tag\u001b[0;34m(tag)\u001b[0m\n\u001b[1;32m 284\u001b[0m \u001b[38;5;28;01melse\u001b[39;00m:\n\u001b[1;32m 285\u001b[0m msg \u001b[38;5;241m=\u001b[39m dedent(\n\u001b[1;32m 286\u001b[0m \u001b[38;5;124mf\u001b[39m\u001b[38;5;124m\"\"\"\u001b[39m\n\u001b[1;32m 287\u001b[0m \u001b[38;5;124m <h2>Base image difference detected</h2>\u001b[39m\n\u001b[0;32m (...)\u001b[0m\n\u001b[1;32m 295\u001b[0m \u001b[38;5;124m \u001b[39m\u001b[38;5;124m\"\"\"\u001b[39m\n\u001b[1;32m 296\u001b[0m )\n\u001b[0;32m--> 297\u001b[0m notebook_image_release_msg \u001b[38;5;241m=\u001b[39m \u001b[43m_get_release_message\u001b[49m\u001b[43m(\u001b[49m\u001b[43mtag\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 298\u001b[0m current_image_release_msg \u001b[38;5;241m=\u001b[39m _get_release_message(current_kernel_version)\n\u001b[1;32m 300\u001b[0m diff_lines \u001b[38;5;241m=\u001b[39m _calculate_diff_lines(\n\u001b[1;32m 301\u001b[0m old\u001b[38;5;241m=\u001b[39mnotebook_image_release_msg,\n\u001b[1;32m 302\u001b[0m new\u001b[38;5;241m=\u001b[39mcurrent_image_release_msg,\n\u001b[1;32m 303\u001b[0m )\n",
75+
"File \u001b[0;32m/home/conda/users/c06df7d8cc38dff0b6ab13f016d9cda4bb65ebb5cdefbe46dc867e3aa29b6b61-20230801-104751-102087-199-edc-2023.07-01/lib/python3.11/site-packages/edc.py:198\u001b[0m, in \u001b[0;36m_get_release_message\u001b[0;34m(tag)\u001b[0m\n\u001b[1;32m 196\u001b[0m \u001b[38;5;28;01mdef\u001b[39;00m \u001b[38;5;21m_get_release_message\u001b[39m(tag: \u001b[38;5;28mstr\u001b[39m) \u001b[38;5;241m-\u001b[39m\u001b[38;5;241m>\u001b[39m \u001b[38;5;28mstr\u001b[39m:\n\u001b[1;32m 197\u001b[0m response \u001b[38;5;241m=\u001b[39m requests\u001b[38;5;241m.\u001b[39mget(RELEASE_URL\u001b[38;5;241m.\u001b[39mformat(tag\u001b[38;5;241m=\u001b[39mtag))\n\u001b[0;32m--> 198\u001b[0m \u001b[43mresponse\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mraise_for_status\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 199\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m response\u001b[38;5;241m.\u001b[39mtext\n",
76+
"File \u001b[0;32m/home/conda/users/c06df7d8cc38dff0b6ab13f016d9cda4bb65ebb5cdefbe46dc867e3aa29b6b61-20230801-104751-102087-199-edc-2023.07-01/lib/python3.11/site-packages/requests/models.py:1021\u001b[0m, in \u001b[0;36mResponse.raise_for_status\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 1016\u001b[0m http_error_msg \u001b[38;5;241m=\u001b[39m (\n\u001b[1;32m 1017\u001b[0m \u001b[38;5;124mf\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;132;01m{\u001b[39;00m\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mstatus_code\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m Server Error: \u001b[39m\u001b[38;5;132;01m{\u001b[39;00mreason\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m for url: \u001b[39m\u001b[38;5;132;01m{\u001b[39;00m\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39murl\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m\"\u001b[39m\n\u001b[1;32m 1018\u001b[0m )\n\u001b[1;32m 1020\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m http_error_msg:\n\u001b[0;32m-> 1021\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m HTTPError(http_error_msg, response\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mself\u001b[39m)\n",
77+
"\u001b[0;31mHTTPError\u001b[0m: 500 Server Error: INTERNAL SERVER ERROR for url: https://contributions-api.hub.eox.at/base-image-release-notes/user-2023.10-01"
78+
]
79+
}
80+
],
2481
"source": [
2582
"from edc import check_compatibility\n",
2683
"check_compatibility(\"user-2023.10-01\", dependencies=[\"SH\"])"
@@ -35,7 +92,7 @@
3592
"end_time": null,
3693
"exception": null,
3794
"start_time": null,
38-
"status": "completed"
95+
"status": "pending"
3996
},
4097
"tags": []
4198
},
@@ -54,7 +111,7 @@
54111
"end_time": null,
55112
"exception": null,
56113
"start_time": null,
57-
"status": "completed"
114+
"status": "pending"
58115
},
59116
"tags": []
60117
},
@@ -81,7 +138,7 @@
81138
"end_time": null,
82139
"exception": null,
83140
"start_time": null,
84-
"status": "completed"
141+
"status": "pending"
85142
},
86143
"tags": []
87144
},
@@ -100,7 +157,7 @@
100157
"end_time": null,
101158
"exception": null,
102159
"start_time": null,
103-
"status": "completed"
160+
"status": "pending"
104161
},
105162
"tags": []
106163
},
@@ -129,7 +186,7 @@
129186
"end_time": null,
130187
"exception": null,
131188
"start_time": null,
132-
"status": "completed"
189+
"status": "pending"
133190
},
134191
"tags": []
135192
},
@@ -156,7 +213,7 @@
156213
"end_time": null,
157214
"exception": null,
158215
"start_time": null,
159-
"status": "completed"
216+
"status": "pending"
160217
},
161218
"tags": []
162219
},
@@ -180,7 +237,7 @@
180237
"end_time": null,
181238
"exception": null,
182239
"start_time": null,
183-
"status": "completed"
240+
"status": "pending"
184241
},
185242
"tags": []
186243
},
@@ -200,7 +257,7 @@
200257
"end_time": null,
201258
"exception": null,
202259
"start_time": null,
203-
"status": "completed"
260+
"status": "pending"
204261
},
205262
"tags": []
206263
},
@@ -228,7 +285,7 @@
228285
"end_time": null,
229286
"exception": null,
230287
"start_time": null,
231-
"status": "completed"
288+
"status": "pending"
232289
},
233290
"tags": []
234291
},
@@ -246,7 +303,7 @@
246303
"end_time": null,
247304
"exception": null,
248305
"start_time": null,
249-
"status": "completed"
306+
"status": "pending"
250307
},
251308
"tags": []
252309
},
@@ -270,7 +327,7 @@
270327
"end_time": null,
271328
"exception": null,
272329
"start_time": null,
273-
"status": "completed"
330+
"status": "pending"
274331
},
275332
"tags": []
276333
},
@@ -288,7 +345,7 @@
288345
"end_time": null,
289346
"exception": null,
290347
"start_time": null,
291-
"status": "completed"
348+
"status": "pending"
292349
},
293350
"tags": []
294351
},
@@ -312,7 +369,7 @@
312369
"end_time": null,
313370
"exception": null,
314371
"start_time": null,
315-
"status": "completed"
372+
"status": "pending"
316373
},
317374
"tags": []
318375
},
@@ -334,7 +391,7 @@
334391
"end_time": null,
335392
"exception": null,
336393
"start_time": null,
337-
"status": "completed"
394+
"status": "pending"
338395
},
339396
"tags": []
340397
},
@@ -351,7 +408,7 @@
351408
"end_time": null,
352409
"exception": null,
353410
"start_time": null,
354-
"status": "completed"
411+
"status": "pending"
355412
},
356413
"tags": []
357414
},
@@ -372,7 +429,7 @@
372429
"end_time": null,
373430
"exception": null,
374431
"start_time": null,
375-
"status": "completed"
432+
"status": "pending"
376433
},
377434
"tags": []
378435
},
@@ -393,7 +450,7 @@
393450
"end_time": null,
394451
"exception": null,
395452
"start_time": null,
396-
"status": "completed"
453+
"status": "pending"
397454
},
398455
"tags": []
399456
},
@@ -418,17 +475,17 @@
418475
"name": "python",
419476
"nbconvert_exporter": "python",
420477
"pygments_lexer": "ipython3",
421-
"version": "3.11.6"
478+
"version": "3.11.4"
422479
},
423480
"papermill": {
424-
"duration": 0.16793,
425-
"end_time": "2023-10-24T13:24:29.961413",
481+
"duration": 2.860284,
482+
"end_time": "2023-10-24T13:33:48.726058",
426483
"environment_variables": {},
427-
"exception": null,
428-
"input_path": "extra/notebook-verification-run/r20231024t132427/EDC_first-steps.ipynb",
429-
"output_path": "/home/jovyan/extra/job-output/2023-10-24/r20231024t132427/EDC_first-steps.ipynb",
484+
"exception": true,
485+
"input_path": "extra/notebook-verification-run/r20231024t133342/EDC_first-steps.ipynb",
486+
"output_path": "/home/jovyan/extra/job-output/2023-10-24/r20231024t133342/EDC_first-steps.ipynb",
430487
"parameters": {},
431-
"start_time": "2023-10-24T13:24:29.793481",
488+
"start_time": "2023-10-24T13:33:45.865774",
432489
"version": "2.1.0"
433490
},
434491
"properties": {
@@ -461,4 +518,4 @@
461518
},
462519
"nbformat": 4,
463520
"nbformat_minor": 5
464-
}
521+
}

0 commit comments

Comments
 (0)