@@ -50,6 +50,7 @@ function cell_to_ipynb(id: string, opts: any) {
50
50
cell_type : ( left = cell . get ( "cell_type" ) ) != null ? left : "code" ,
51
51
source : diff_friendly ( ( left1 = cell . get ( "input" ) ) != null ? left1 : "" ) ,
52
52
metadata,
53
+ id,
53
54
} ;
54
55
55
56
// Handle any extra metadata (mostly user defined) that we don't handle in a special
@@ -87,7 +88,7 @@ function cell_to_ipynb(id: string, opts: any) {
87
88
output ,
88
89
exec_count ,
89
90
opts . more_output != null ? opts . more_output [ id ] : undefined ,
90
- opts . blob_store
91
+ opts . blob_store ,
91
92
) ;
92
93
} else if ( obj . outputs == null && obj . cell_type === "code" ) {
93
94
obj . outputs = [ ] ; // annoying requirement of ipynb file format.
@@ -130,7 +131,7 @@ function process_other_metadata(obj: any, other_metadata: any) {
130
131
function process_attachments (
131
132
obj : any ,
132
133
attachments : any ,
133
- blob_store : BlobStore | undefined
134
+ blob_store : BlobStore | undefined ,
134
135
) {
135
136
if ( attachments == null || blob_store == null ) {
136
137
// don't have to or can't do anything (https://github.com/sagemathinc/cocalc/issues/4272)
@@ -155,7 +156,7 @@ function ipynb_outputs(
155
156
output : any ,
156
157
exec_count : any ,
157
158
more_output : any ,
158
- blob_store : BlobStore | undefined
159
+ blob_store : BlobStore | undefined ,
159
160
) {
160
161
// If the last message has the more_output field, then there may be
161
162
// more output messages stored, which are not in the cells object.
@@ -170,7 +171,7 @@ function ipynb_outputs(
170
171
immutable . fromJS ( {
171
172
text : "WARNING: Some output was deleted.\n" ,
172
173
name : "stderr" ,
173
- } )
174
+ } ) ,
174
175
) ;
175
176
} else {
176
177
// Indeed, the last message has the more_output field.
@@ -204,7 +205,7 @@ function ipynb_outputs(
204
205
function process_output_n (
205
206
output_n : any ,
206
207
exec_count : any ,
207
- blob_store : BlobStore | undefined
208
+ blob_store : BlobStore | undefined ,
208
209
) {
209
210
if ( output_n == null ) {
210
211
return ;
0 commit comments