From bfabc3e4987548ed9d8d9a3e7dfbb4baf416a8bc Mon Sep 17 00:00:00 2001 From: Aaron Jomy Date: Sun, 15 Nov 2026 17:51:54 +0100 Subject: [PATCH 1/2] Write the cuPhoton workflow runs next to the notebook. Signed-off-by: Aaron Jomy --- notebooks/distributed/13__dragonhpc_cuphoton__workflow.ipynb | 2 +- .../solutions/13__dragonhpc_cuphoton__workflow__SOLUTION.ipynb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/notebooks/distributed/13__dragonhpc_cuphoton__workflow.ipynb b/notebooks/distributed/13__dragonhpc_cuphoton__workflow.ipynb index d32d9a1..408c0ea 100644 --- a/notebooks/distributed/13__dragonhpc_cuphoton__workflow.ipynb +++ b/notebooks/distributed/13__dragonhpc_cuphoton__workflow.ipynb @@ -120,7 +120,7 @@ ")).expanduser().resolve())\n", "assert WORKERS > 0 and NODES > 0\n", "SESSION = f\"notebook-{time.strftime('%Y%m%d-%H%M%S')}-{uuid.uuid4().hex[:6]}\"\n", - "RUNS = DEMO / \"runs\" / SESSION\n", + "RUNS = Path(\"runs\") / SESSION\n", "RUNS.mkdir(parents=True, exist_ok=False)\n", "# %%bash inherits these environment variables; PATH selects this kernel's tools.\n", "os.environ[\"PATH\"] = str(Path(sys.executable).parent) + os.pathsep + os.environ[\"PATH\"]\n", diff --git a/notebooks/distributed/solutions/13__dragonhpc_cuphoton__workflow__SOLUTION.ipynb b/notebooks/distributed/solutions/13__dragonhpc_cuphoton__workflow__SOLUTION.ipynb index d32d9a1..408c0ea 100644 --- a/notebooks/distributed/solutions/13__dragonhpc_cuphoton__workflow__SOLUTION.ipynb +++ b/notebooks/distributed/solutions/13__dragonhpc_cuphoton__workflow__SOLUTION.ipynb @@ -120,7 +120,7 @@ ")).expanduser().resolve())\n", "assert WORKERS > 0 and NODES > 0\n", "SESSION = f\"notebook-{time.strftime('%Y%m%d-%H%M%S')}-{uuid.uuid4().hex[:6]}\"\n", - "RUNS = DEMO / \"runs\" / SESSION\n", + "RUNS = Path(\"runs\") / SESSION\n", "RUNS.mkdir(parents=True, exist_ok=False)\n", "# %%bash inherits these environment variables; PATH selects this kernel's tools.\n", "os.environ[\"PATH\"] = str(Path(sys.executable).parent) + os.pathsep + os.environ[\"PATH\"]\n", From 53517fa7bf3611b54d6a3aa24862186f21eab89c Mon Sep 17 00:00:00 2001 From: Aaron Jomy Date: Sun, 15 Nov 2026 17:56:19 +0100 Subject: [PATCH 2/2] Ignore the runs directory. Signed-off-by: Aaron Jomy --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index f8f166f..0f57b2e 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ __pycache__/ .vscode/ .devcontainer/ build/ +runs/