Skip to content

Commit 5b2cf58

Browse files
committed
fix: preserve output metadata
1 parent 0c661e0 commit 5b2cf58

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/notebooks/deepnote/deepnoteCellCopyHandler.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,11 @@ export class DeepnoteCellCopyHandler implements IExtensionSyncActivationService
168168
// Copy outputs if present
169169
if (cellToCopy.outputs.length > 0) {
170170
newCell.outputs = cellToCopy.outputs.map(
171-
(o) => new NotebookCellOutput(o.items.map((i) => new NotebookCellOutputItem(i.data, i.mime)))
171+
(o) =>
172+
new NotebookCellOutput(
173+
o.items.map((i) => new NotebookCellOutputItem(i.data, i.mime)),
174+
o.metadata
175+
)
172176
);
173177
}
174178

0 commit comments

Comments
 (0)