File tree Expand file tree Collapse file tree 2 files changed +26
-14
lines changed Expand file tree Collapse file tree 2 files changed +26
-14
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,6 @@ def normalize_output(output):
28
28
output ['data' ]['application/vnd.jupyter.widget-view+json' ][
29
29
'model_id'
30
30
] = '<MODEL_ID>'
31
- # 'output_type' for widgets is changed from 'display_data' to 'execute_result'
32
- # in ipywidgets 8
33
- if output ['output_type' ] == 'display_data' :
34
- output ['output_type' ] = 'execute_result'
35
31
36
32
37
33
def normalize_outputs (outputs ):
Original file line number Diff line number Diff line change 16
16
" Output()"
17
17
]
18
18
},
19
+ "execution_count" : 1 ,
19
20
"metadata" : {},
20
- "output_type" : " display_data "
21
+ "output_type" : " execute_result "
21
22
}
22
23
],
23
24
"source" : [
72
73
" Output()"
73
74
]
74
75
},
76
+ "execution_count" : 4 ,
75
77
"metadata" : {},
76
- "output_type" : " display_data "
78
+ "output_type" : " execute_result "
77
79
}
78
80
],
79
81
"source" : [
118
120
" Output()"
119
121
]
120
122
},
123
+ "execution_count" : 6 ,
121
124
"metadata" : {},
122
- "output_type" : " display_data "
125
+ "output_type" : " execute_result "
123
126
}
124
127
],
125
128
"source" : [
165
168
" Output()"
166
169
]
167
170
},
171
+ "execution_count" : 8 ,
168
172
"metadata" : {},
169
- "output_type" : " display_data "
173
+ "output_type" : " execute_result "
170
174
}
171
175
],
172
176
"source" : [
211
215
" Output()"
212
216
]
213
217
},
218
+ "execution_count" : 10 ,
214
219
"metadata" : {},
215
- "output_type" : " display_data "
220
+ "output_type" : " execute_result "
216
221
}
217
222
],
218
223
"source" : [
249
254
" Output()"
250
255
]
251
256
},
257
+ "execution_count" : 12 ,
252
258
"metadata" : {},
253
- "output_type" : " display_data "
259
+ "output_type" : " execute_result "
254
260
}
255
261
],
256
262
"source" : [
276
282
" Output()"
277
283
]
278
284
},
285
+ "execution_count" : 13 ,
279
286
"metadata" : {},
280
- "output_type" : " display_data "
287
+ "output_type" : " execute_result "
281
288
}
282
289
],
283
290
"source" : [
296
303
" print('in outer')\n " ,
297
304
" print('also in inner')"
298
305
]
306
+ },
307
+ {
308
+ "cell_type" : " code" ,
309
+ "execution_count" : null ,
310
+ "metadata" : {},
311
+ "outputs" : [],
312
+ "source" : []
299
313
}
300
314
],
301
315
"metadata" : {
302
316
"kernelspec" : {
303
- "language" : " python"
317
+ "display_name" : " Python 3 (ipykernel)" ,
318
+ "language" : " python" ,
319
+ "name" : " python3"
304
320
},
305
321
"language_info" : {
306
322
"codemirror_mode" : {
312
328
"name" : " python" ,
313
329
"nbconvert_exporter" : " python" ,
314
330
"pygments_lexer" : " ipython3" ,
315
- "version" : " 3.7.3 "
331
+ "version" : " 3.9.13 "
316
332
},
317
333
"widgets" : {
318
334
"application/vnd.jupyter.widget-state+json" : {
772
788
}
773
789
},
774
790
"nbformat" : 4 ,
775
- "nbformat_minor" : 2
791
+ "nbformat_minor" : 4
776
792
}
You can’t perform that action at this time.
0 commit comments