Skip to content

Commit 4188e24

Browse files
committed
update notebooks for other workflow frameworks
1 parent 78ae48b commit 4188e24

File tree

6 files changed

+210
-10
lines changed

6 files changed

+210
-10
lines changed

example_workflows/nfdi/aiida.ipynb

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,44 @@
355355
}
356356
],
357357
"execution_count": 24
358+
},
359+
{
360+
"metadata": {},
361+
"cell_type": "markdown",
362+
"source": "## Load Workflow with pyiron_workflow",
363+
"id": "afaf2bc0b3a491ca"
364+
},
365+
{
366+
"metadata": {},
367+
"cell_type": "code",
368+
"outputs": [],
369+
"execution_count": null,
370+
"source": "from python_workflow_definition.pyiron_workflow import load_workflow_json",
371+
"id": "6172b410eb776fc4"
372+
},
373+
{
374+
"metadata": {},
375+
"cell_type": "code",
376+
"outputs": [],
377+
"execution_count": null,
378+
"source": "wf = load_workflow_json(file_name=workflow_json_filename)",
379+
"id": "668fe64b18b4d604"
380+
},
381+
{
382+
"metadata": {},
383+
"cell_type": "code",
384+
"outputs": [],
385+
"execution_count": null,
386+
"source": "wf.draw(size=(10,10))",
387+
"id": "8c4fd72394841ffa"
388+
},
389+
{
390+
"metadata": {},
391+
"cell_type": "code",
392+
"outputs": [],
393+
"execution_count": null,
394+
"source": "wf.run()",
395+
"id": "c1427e3ce0716f64"
358396
}
359397
]
360398
}

example_workflows/nfdi/jobflow.ipynb

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,44 @@
327327
}
328328
],
329329
"execution_count": 22
330+
},
331+
{
332+
"metadata": {},
333+
"cell_type": "markdown",
334+
"source": "## Load Workflow with pyiron_workflow",
335+
"id": "8e73fa07cebd7b72"
336+
},
337+
{
338+
"metadata": {},
339+
"cell_type": "code",
340+
"outputs": [],
341+
"execution_count": null,
342+
"source": "from python_workflow_definition.pyiron_workflow import load_workflow_json",
343+
"id": "aa99fbd94b03a869"
344+
},
345+
{
346+
"metadata": {},
347+
"cell_type": "code",
348+
"outputs": [],
349+
"execution_count": null,
350+
"source": "wf = load_workflow_json(file_name=workflow_json_filename)",
351+
"id": "728b8684fee475b5"
352+
},
353+
{
354+
"metadata": {},
355+
"cell_type": "code",
356+
"outputs": [],
357+
"execution_count": null,
358+
"source": "wf.draw(size=(10,10))",
359+
"id": "7b814f0f74f0b15a"
360+
},
361+
{
362+
"metadata": {},
363+
"cell_type": "code",
364+
"outputs": [],
365+
"execution_count": null,
366+
"source": "wf.run()",
367+
"id": "447506cdca5080e6"
330368
}
331369
]
332370
}

example_workflows/nfdi/pyiron_base.ipynb

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,44 @@
312312
}
313313
],
314314
"execution_count": 22
315+
},
316+
{
317+
"metadata": {},
318+
"cell_type": "markdown",
319+
"source": "## Load Workflow with pyiron_workflow",
320+
"id": "385acbf585763632"
321+
},
322+
{
323+
"metadata": {},
324+
"cell_type": "code",
325+
"outputs": [],
326+
"execution_count": null,
327+
"source": "from python_workflow_definition.pyiron_workflow import load_workflow_json",
328+
"id": "927d0118cc4edfba"
329+
},
330+
{
331+
"metadata": {},
332+
"cell_type": "code",
333+
"outputs": [],
334+
"execution_count": null,
335+
"source": "wf = load_workflow_json(file_name=workflow_json_filename)",
336+
"id": "50055483ca2c9909"
337+
},
338+
{
339+
"metadata": {},
340+
"cell_type": "code",
341+
"outputs": [],
342+
"execution_count": null,
343+
"source": "wf.draw(size=(10,10))",
344+
"id": "7d25a578c431e0f5"
345+
},
346+
{
347+
"metadata": {},
348+
"cell_type": "code",
349+
"outputs": [],
350+
"execution_count": null,
351+
"source": "wf.run()",
352+
"id": "fff9513c4a127a96"
315353
}
316354
]
317355
}

example_workflows/quantum_espresso/aiida.ipynb

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -462,13 +462,37 @@
462462
"execution_count": 25
463463
},
464464
{
465+
"metadata": {},
466+
"cell_type": "markdown",
467+
"source": "## Load Workflow with pyiron_workflow"
468+
},
469+
{
470+
"metadata": {},
471+
"cell_type": "code",
472+
"outputs": [],
473+
"execution_count": null,
474+
"source": "from python_workflow_definition.pyiron_workflow import load_workflow_json"
475+
},
476+
{
477+
"metadata": {},
478+
"cell_type": "code",
479+
"outputs": [],
480+
"execution_count": null,
481+
"source": "wf = load_workflow_json(file_name=workflow_json_filename)"
482+
},
483+
{
484+
"metadata": {},
485+
"cell_type": "code",
486+
"outputs": [],
487+
"execution_count": null,
488+
"source": "wf.draw(size=(10,10))"
489+
},
490+
{
491+
"metadata": {},
465492
"cell_type": "code",
466-
"source": "",
467-
"metadata": {
468-
"trusted": true
469-
},
470493
"outputs": [],
471-
"execution_count": null
494+
"execution_count": null,
495+
"source": "wf.run()"
472496
}
473497
]
474498
}

example_workflows/quantum_espresso/jobflow.ipynb

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -444,13 +444,37 @@
444444
"execution_count": 25
445445
},
446446
{
447+
"metadata": {},
448+
"cell_type": "markdown",
449+
"source": "## Load Workflow with pyiron_workflow"
450+
},
451+
{
452+
"metadata": {},
453+
"cell_type": "code",
454+
"outputs": [],
455+
"execution_count": null,
456+
"source": "from python_workflow_definition.pyiron_workflow import load_workflow_json"
457+
},
458+
{
459+
"metadata": {},
460+
"cell_type": "code",
461+
"outputs": [],
462+
"execution_count": null,
463+
"source": "wf = load_workflow_json(file_name=workflow_json_filename)"
464+
},
465+
{
466+
"metadata": {},
467+
"cell_type": "code",
468+
"outputs": [],
469+
"execution_count": null,
470+
"source": "wf.draw(size=(10,10))"
471+
},
472+
{
473+
"metadata": {},
447474
"cell_type": "code",
448-
"source": "",
449-
"metadata": {
450-
"trusted": true
451-
},
452475
"outputs": [],
453-
"execution_count": null
476+
"execution_count": null,
477+
"source": "wf.run()"
454478
}
455479
]
456480
}

example_workflows/quantum_espresso/pyiron_base.ipynb

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,44 @@
382382
}
383383
],
384384
"execution_count": 22
385+
},
386+
{
387+
"metadata": {},
388+
"cell_type": "markdown",
389+
"source": "## Load Workflow with pyiron_workflow",
390+
"id": "406b0429e65b9760"
391+
},
392+
{
393+
"metadata": {},
394+
"cell_type": "code",
395+
"outputs": [],
396+
"execution_count": null,
397+
"source": "from python_workflow_definition.pyiron_workflow import load_workflow_json",
398+
"id": "1b45a453f593202f"
399+
},
400+
{
401+
"metadata": {},
402+
"cell_type": "code",
403+
"outputs": [],
404+
"execution_count": null,
405+
"source": "wf = load_workflow_json(file_name=workflow_json_filename)",
406+
"id": "97ef39ae859855ab"
407+
},
408+
{
409+
"metadata": {},
410+
"cell_type": "code",
411+
"outputs": [],
412+
"execution_count": null,
413+
"source": "wf.draw(size=(10,10))",
414+
"id": "4368c6921b71e396"
415+
},
416+
{
417+
"metadata": {},
418+
"cell_type": "code",
419+
"outputs": [],
420+
"execution_count": null,
421+
"source": "wf.run()",
422+
"id": "b9130e7566a72f27"
385423
}
386424
]
387425
}

0 commit comments

Comments
 (0)