Skip to content

Commit 06dce57

Browse files
authored
Merge pull request #96 from singlestore-labs/tim/temp-strip-outputs
Temp: Strip outputs
2 parents fc8ddb9 + 8b338fa commit 06dce57

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

resources/nb-check.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,13 @@ def new_markdown_cell(cell_id: str, content: list[str]) -> dict[str, Any]:
145145

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

148-
# Remove metadata
148+
# Remove metadata and outputs
149149
for i, cell in enumerate(cells):
150150
if 'metadata' in cell:
151151
cell['metadata'] = {}
152+
# TODO: do not remove outputs once helios has migrated to published zips
153+
if 'outputs' in cell:
154+
cell['outputs'] = []
152155

153156
# Remove empty cells at the end of the notebook
154157
end = len(cells) - 1

0 commit comments

Comments
 (0)