We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df330bc commit 8b88881Copy full SHA for 8b88881
src/notebooks/deepnote/deepnoteDataConverter.ts
@@ -87,7 +87,9 @@ export class DeepnoteDataConverter {
87
// Outputs are managed by VS Code natively, not stored in the pocket
88
// Preserve outputs when they exist (including newly produced outputs)
89
// Only set if not already set to avoid overwriting converter-managed outputs
90
- if (cell.outputs && !block.outputs) {
+ // Only set if the cell actually has outputs (non-empty array) or if the block originally had outputs
91
+ const hadOutputs = cell.metadata?.__hadOutputs;
92
+ if (cell.outputs && !block.outputs && (cell.outputs.length > 0 || hadOutputs)) {
93
block.outputs = this.transformOutputsForDeepnote(cell.outputs);
94
}
95
0 commit comments