Skip to content

Commit

Permalink
Merge pull request #96 from singlestore-labs/tim/temp-strip-outputs
Browse files Browse the repository at this point in the history
Temp: Strip outputs
  • Loading branch information
tiimgreen authored May 21, 2024
2 parents fc8ddb9 + 8b338fa commit 06dce57
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resources/nb-check.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,13 @@ def new_markdown_cell(cell_id: str, content: list[str]) -> dict[str, Any]:

cells = nb.get('cells', [])

# Remove metadata
# Remove metadata and outputs
for i, cell in enumerate(cells):
if 'metadata' in cell:
cell['metadata'] = {}
# TODO: do not remove outputs once helios has migrated to published zips
if 'outputs' in cell:
cell['outputs'] = []

# Remove empty cells at the end of the notebook
end = len(cells) - 1
Expand Down

0 comments on commit 06dce57

Please sign in to comment.