MCPcopy Create free account
hub / github.com/Open-Quant/openquant / main

Function main

notebooks/python/scripts/execute_notebook_cells.py:50–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48 cell["id"] = f"cell-{idx:02d}"
49 cell.metadata.pop("execution", None)
50 cell.metadata.pop("collapsed", None)
51 cell.metadata.pop("scrolled", None)
52 if cell.cell_type == "code":
53 for output in cell.get("outputs", []):
54 output.get("metadata", {}).pop("execution", None)
55 return nb
56
57
58def execute_notebook(
59 path: Path,
60 out_path: Path | None = None,
61 *,
62 timeout: int = DEFAULT_TIMEOUT_S,
63 env: dict[str, str] | None = None,
64) -> nbformat.NotebookNode:

Callers 1

Calls 1

execute_notebookFunction · 0.85

Tested by

no test coverage detected