Skip to content

Commit 21e9df9

Browse files
committed
Revert "add nbstripout via pre-commit and strip all notebooks"
This reverts commit 1ecb3f5.
1 parent 1ecb3f5 commit 21e9df9

19 files changed

+24481
-2702
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 9 deletions
This file was deleted.

example_workflows/arithmetic/aiida.ipynb

Lines changed: 168 additions & 134 deletions
Large diffs are not rendered by default.
Lines changed: 72 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,97 @@
11
{
2+
"metadata": {
3+
"kernelspec": {
4+
"display_name": "Python 3 (ipykernel)",
5+
"language": "python",
6+
"name": "python3"
7+
},
8+
"language_info": {
9+
"name": "python",
10+
"version": "3.12.8",
11+
"mimetype": "text/x-python",
12+
"codemirror_mode": {
13+
"name": "ipython",
14+
"version": 3
15+
},
16+
"pygments_lexer": "ipython3",
17+
"nbconvert_exporter": "python",
18+
"file_extension": ".py"
19+
}
20+
},
21+
"nbformat_minor": 5,
22+
"nbformat": 4,
223
"cells": [
324
{
25+
"id": "377fef56-484d-491c-b19e-1be6931e44eb",
426
"cell_type": "code",
5-
"execution_count": null,
6-
"id": "0",
7-
"metadata": {},
27+
"source": "import pickle",
28+
"metadata": {
29+
"trusted": true
30+
},
831
"outputs": [],
9-
"source": [
10-
"import pickle"
11-
]
32+
"execution_count": 1
1233
},
1334
{
35+
"id": "92e3921b-2bb8-4333-8cfe-4bd27f785d24",
1436
"cell_type": "code",
15-
"execution_count": null,
16-
"id": "1",
17-
"metadata": {},
37+
"source": "from python_workflow_definition.cwl import write_workflow",
38+
"metadata": {
39+
"trusted": true
40+
},
1841
"outputs": [],
19-
"source": [
20-
"from python_workflow_definition.cwl import write_workflow"
21-
]
42+
"execution_count": 2
2243
},
2344
{
45+
"id": "5303c059-8ae4-4557-858e-b4bd64eac711",
2446
"cell_type": "code",
25-
"execution_count": null,
26-
"id": "2",
27-
"metadata": {},
47+
"source": "write_workflow(file_name=\"workflow.json\")",
48+
"metadata": {
49+
"trusted": true
50+
},
2851
"outputs": [],
29-
"source": [
30-
"write_workflow(file_name=\"workflow.json\")"
31-
]
52+
"execution_count": 3
3253
},
3354
{
55+
"id": "df302bd2-e9b6-4595-979c-67c46414d986",
3456
"cell_type": "code",
35-
"execution_count": null,
36-
"id": "3",
37-
"metadata": {},
38-
"outputs": [],
39-
"source": [
40-
"! cwltool workflow.cwl workflow.yml"
41-
]
57+
"source": "! cwltool workflow.cwl workflow.yml",
58+
"metadata": {
59+
"trusted": true
60+
},
61+
"outputs": [
62+
{
63+
"name": "stdout",
64+
"output_type": "stream",
65+
"text": "/srv/conda/envs/notebook/bin/cwltool:11: DeprecationWarning: Nesting argument groups is deprecated.\n sys.exit(run())\n\u001B[1;30mINFO\u001B[0m /srv/conda/envs/notebook/bin/cwltool 3.1.20250110105449\n\u001B[1;30mINFO\u001B[0m Resolved 'workflow.cwl' to 'file:///home/jovyan/example_workflows/arithmetic/workflow.cwl'\n\u001B[1;30mINFO\u001B[0m [workflow ] start\n\u001B[1;30mINFO\u001B[0m [workflow ] starting step get_prod_and_div_0\n\u001B[1;30mINFO\u001B[0m [step get_prod_and_div_0] start\n\u001B[1;30mINFO\u001B[0m [job get_prod_and_div_0] /tmp/_1apt559$ python \\\n -m \\\n python_workflow_definition.cwl \\\n --workflowfile=/tmp/dyuxg6ka/stgf337bac5-2f8e-4489-bd51-83491b1d5f0e/workflow.py \\\n --function=workflow.get_prod_and_div \\\n --arg_x=/tmp/dyuxg6ka/stgd87c2fe4-ca8e-4031-9af0-751d6944cbe7/x.pickle \\\n --arg_y=/tmp/dyuxg6ka/stg7bcb8ced-0e5b-442e-a0e0-2b3117afe2d8/y.pickle\n\u001B[1;30mINFO\u001B[0m [job get_prod_and_div_0] completed success\n\u001B[1;30mINFO\u001B[0m [step get_prod_and_div_0] completed success\n\u001B[1;30mINFO\u001B[0m [workflow ] starting step get_sum_1\n\u001B[1;30mINFO\u001B[0m [step get_sum_1] start\n\u001B[1;30mINFO\u001B[0m [job get_sum_1] /tmp/ysau_yra$ python \\\n -m \\\n python_workflow_definition.cwl \\\n --workflowfile=/tmp/rm6c9qek/stgfef68b90-5d69-4da9-a952-b9c2f2a1eb76/workflow.py \\\n --function=workflow.get_sum \\\n --arg_x=/tmp/rm6c9qek/stg35728be7-5a6d-487b-bd02-345581007663/prod.pickle \\\n --arg_y=/tmp/rm6c9qek/stgc0992786-237e-4308-9d9e-814ebbfb0319/div.pickle\n\u001B[1;30mINFO\u001B[0m [job get_sum_1] completed success\n\u001B[1;30mINFO\u001B[0m [step get_sum_1] completed success\n\u001B[1;30mINFO\u001B[0m [workflow ] starting step get_square_2\n\u001B[1;30mINFO\u001B[0m [step get_square_2] start\n\u001B[1;30mINFO\u001B[0m [job get_square_2] /tmp/o3gzya8t$ python \\\n -m \\\n python_workflow_definition.cwl \\\n --workflowfile=/tmp/6a3sltnz/stg58ccf048-a5c3-4ba3-a24f-c64adfff84cd/workflow.py \\\n --function=workflow.get_square \\\n --arg_x=/tmp/6a3sltnz/stg70203cec-cbd4-4fea-a3de-70e9373d9c9d/result.pickle\n\u001B[1;30mINFO\u001B[0m [job get_square_2] completed success\n\u001B[1;30mINFO\u001B[0m [step get_square_2] completed success\n\u001B[1;30mINFO\u001B[0m [workflow ] completed success\n{\n \"result_file\": {\n \"location\": \"file:///home/jovyan/example_workflows/arithmetic/result.pickle\",\n \"basename\": \"result.pickle\",\n \"class\": \"File\",\n \"checksum\": \"sha1$1fd8f217331336b1226b84e351c56fb9a8d93685\",\n \"size\": 21,\n \"path\": \"/home/jovyan/example_workflows/arithmetic/result.pickle\"\n }\n}\u001B[1;30mINFO\u001B[0m Final process status is success\n"
66+
}
67+
],
68+
"execution_count": 4
4269
},
4370
{
71+
"id": "2942dbba-ea0a-4d20-be5c-ed9992d09ff8",
4472
"cell_type": "code",
45-
"execution_count": null,
46-
"id": "4",
47-
"metadata": {},
48-
"outputs": [],
49-
"source": [
50-
"with open(\"result.pickle\", \"rb\") as f:\n",
51-
" print(pickle.load(f))"
52-
]
73+
"source": "with open(\"result.pickle\", \"rb\") as f:\n print(pickle.load(f))",
74+
"metadata": {
75+
"trusted": true
76+
},
77+
"outputs": [
78+
{
79+
"name": "stdout",
80+
"output_type": "stream",
81+
"text": "6.25\n"
82+
}
83+
],
84+
"execution_count": 5
5385
},
5486
{
87+
"id": "60e909ee-d0d0-4bd1-81c8-dd5274ae5834",
5588
"cell_type": "code",
56-
"execution_count": null,
57-
"id": "5",
58-
"metadata": {},
89+
"source": "",
90+
"metadata": {
91+
"trusted": true
92+
},
5993
"outputs": [],
60-
"source": []
94+
"execution_count": null
6195
}
62-
],
63-
"metadata": {},
64-
"nbformat": 4,
65-
"nbformat_minor": 5
96+
]
6697
}

0 commit comments

Comments
 (0)