Skip to content

Commit 78ae48b

Browse files
committed
Add pyiron_workflow to all universal notebooks
1 parent 81b7df7 commit 78ae48b

File tree

2 files changed

+68
-2
lines changed

2 files changed

+68
-2
lines changed

example_workflows/nfdi/universal_workflow.ipynb

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,42 @@
289289
"execution_count": 17
290290
},
291291
{
292+
"metadata": {},
292293
"cell_type": "markdown",
293-
"source": "## Python",
294-
"metadata": {}
294+
"source": "## Load Workflow with pyiron_workflow"
295+
},
296+
{
297+
"metadata": {},
298+
"cell_type": "code",
299+
"outputs": [],
300+
"execution_count": null,
301+
"source": "from python_workflow_definition.pyiron_workflow import load_workflow_json"
302+
},
303+
{
304+
"metadata": {},
305+
"cell_type": "code",
306+
"outputs": [],
307+
"execution_count": null,
308+
"source": "wf = load_workflow_json(file_name=\"workflow.json\")"
309+
},
310+
{
311+
"metadata": {},
312+
"cell_type": "code",
313+
"outputs": [],
314+
"execution_count": null,
315+
"source": "wf.draw(size=(10,10))"
316+
},
317+
{
318+
"metadata": {},
319+
"cell_type": "code",
320+
"outputs": [],
321+
"execution_count": null,
322+
"source": "wf.run()"
323+
},
324+
{
325+
"metadata": {},
326+
"cell_type": "markdown",
327+
"source": "## Python"
295328
},
296329
{
297330
"cell_type": "code",

example_workflows/quantum_espresso/universal_workflow.ipynb

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,39 @@
431431
],
432432
"execution_count": 17
433433
},
434+
{
435+
"metadata": {},
436+
"cell_type": "markdown",
437+
"source": "## Load Workflow with pyiron_workflow"
438+
},
439+
{
440+
"metadata": {},
441+
"cell_type": "code",
442+
"outputs": [],
443+
"execution_count": null,
444+
"source": "from python_workflow_definition.pyiron_workflow import load_workflow_json"
445+
},
446+
{
447+
"metadata": {},
448+
"cell_type": "code",
449+
"outputs": [],
450+
"execution_count": null,
451+
"source": "wf = load_workflow_json(file_name=\"workflow.json\")"
452+
},
453+
{
454+
"metadata": {},
455+
"cell_type": "code",
456+
"outputs": [],
457+
"execution_count": null,
458+
"source": "wf.draw(size=(10,10))"
459+
},
460+
{
461+
"metadata": {},
462+
"cell_type": "code",
463+
"outputs": [],
464+
"execution_count": null,
465+
"source": "wf.run()"
466+
},
434467
{
435468
"cell_type": "markdown",
436469
"source": "## Python",

0 commit comments

Comments
 (0)