Skip to content

Commit e272fd4

Browse files
committed
BUG: notebooks are one-based indexed, so we should not zero-index
1 parent 43ba043 commit e272fd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nbval/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def collect(self):
311311
self.nb = nbformat.read(str(self.fspath), as_version=4)
312312

313313
# Start the cell count
314-
cell_num = 0
314+
cell_num = 1
315315

316316
# Iterate over the cells in the notebook
317317
for cell in self.nb.cells:

0 commit comments

Comments
 (0)