From c3745279a463b41dd4d3b457bd48f120b371e9ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brigitta=20Sip=C5=91cz?= Date: Mon, 16 Jun 2025 21:03:46 -0700 Subject: [PATCH] BUG: notebooks are one-based indexed, so we should not zero-index --- nbval/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nbval/plugin.py b/nbval/plugin.py index ee3ff29..951141c 100644 --- a/nbval/plugin.py +++ b/nbval/plugin.py @@ -311,7 +311,7 @@ def collect(self): self.nb = nbformat.read(str(self.fspath), as_version=4) # Start the cell count - cell_num = 0 + cell_num = 1 # Iterate over the cells in the notebook for cell in self.nb.cells: