Skip to content

Commit e5a1055

Browse files
committed
Skip empty cells
1 parent 3d93736 commit e5a1055

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

singlestoredb/magics/run_shared.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ def get_cells() -> Any:
103103
return
104104
for cell in nb.cells:
105105
if cell.cell_type == 'code':
106+
if not cell.source.strip():
107+
continue
106108
output_redirect = getattr(
107109
cell, 'metadata', {},
108110
).get('output_variable', '') or ''

0 commit comments

Comments
 (0)