Skip to content

Commit

Permalink
Adding support for Collapsable headings
Browse files Browse the repository at this point in the history
  • Loading branch information
rpytel1 authored and kynan committed Apr 5, 2021
1 parent c530936 commit 74555ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nbstripout/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def strip_output(nb, keep_output, keep_count, extra_keys=''):
for output_style in ['collapsed', 'scrolled']:
if output_style in cell.metadata:
cell.metadata[output_style] = False
for field in ['ExecuteTime', 'collapsed', 'execution', 'scrolled']:
for field in ['ExecuteTime', 'collapsed', 'execution', 'scrolled', 'heading_collapsed', 'hidden']:
cell.metadata.pop(field, None)
for (extra, fields) in keys['cell'].items():
if extra in cell:
Expand Down

0 comments on commit 74555ac

Please sign in to comment.