Skip to content

Commit

Permalink
Ignore first cell in sphinx format
Browse files Browse the repository at this point in the history
  • Loading branch information
mwouts committed Oct 14, 2018
1 parent dae7225 commit 4a55bd1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jupytext/compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ def compare_notebooks(notebook_expected,
or format_name in ['sphinx', 'spin'])
allow_removed_final_blank_line = allow_expected_differences

if format_name == 'sphinx' and notebook_actual.cells and notebook_actual.cells[0].source == '%matplotlib inline':
notebook_actual.cells = notebook_actual.cells[1:]

# Compare cells type and content
test_cell_iter = iter(notebook_actual.cells)
modified_cells = set()
Expand Down

0 comments on commit 4a55bd1

Please sign in to comment.