Skip to content

Commit 526cd34

Browse files
committed
Skip cells with magic
1 parent c256d80 commit 526cd34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_notebooks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ def test_run_notebooks(md_file):
2121
notebook = jupytext.readf(md_file)
2222
context = {}
2323
for cell in notebook.cells:
24-
if cell.cell_type == 'code':
24+
if cell.cell_type == 'code' and not cell.source.startswith('%'):
2525
exec(cell.source, context)

0 commit comments

Comments
 (0)