From 92824290d85e4d7aaed6e43059c96add3bc1218c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 21 Nov 2025 01:40:21 +0000 Subject: [PATCH 1/2] Initial plan From 1a1908564af90529c56f1a1de71213479e5e1b2d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 21 Nov 2025 01:44:33 +0000 Subject: [PATCH 2/2] Fix ValueError in build_notebooks.py for relative paths Co-authored-by: solveforceapp <98552991+solveforceapp@users.noreply.github.com> --- scripts/build_notebooks.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/build_notebooks.py b/scripts/build_notebooks.py index fcf5a89..33d5fd3 100644 --- a/scripts/build_notebooks.py +++ b/scripts/build_notebooks.py @@ -48,7 +48,11 @@ def main(): print(f"Found {len(notebooks)} notebooks. Exporting to {outdir} ...") for nb in notebooks: - rel = nb.relative_to(Path.cwd()) + # Handle both absolute and relative paths + if nb.is_absolute(): + rel = nb.relative_to(Path.cwd()) + else: + rel = nb target_dir = outdir.joinpath(rel.parent) target_dir.mkdir(parents=True, exist_ok=True) print(f"Processing {nb} -> {target_dir}")