Skip to content

Commit 5fe7015

Browse files
committed
Update ouput.ipynb notebook
1 parent d1ae1e4 commit 5fe7015

File tree

3 files changed

+27
-15
lines changed

3 files changed

+27
-15
lines changed

tests/app/preheat_multiple_notebooks_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import os
55

66
BASE_DIR = os.path.dirname(__file__)
7-
NOTEBOOK_EXECUTION_TIME = 2
7+
NOTEBOOK_EXECUTION_TIME = 3
88
NUMBER_PREHEATED_KERNEL = 2
99
TIME_THRESHOLD = 1
1010

tests/execute_output_test.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ def normalize_output(output):
2828
output['data']['application/vnd.jupyter.widget-view+json'][
2929
'model_id'
3030
] = '<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'
3531

3632

3733
def normalize_outputs(outputs):

tests/notebooks/output.ipynb

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616
"Output()"
1717
]
1818
},
19+
"execution_count": 1,
1920
"metadata": {},
20-
"output_type": "display_data"
21+
"output_type": "execute_result"
2122
}
2223
],
2324
"source": [
@@ -72,8 +73,9 @@
7273
"Output()"
7374
]
7475
},
76+
"execution_count": 4,
7577
"metadata": {},
76-
"output_type": "display_data"
78+
"output_type": "execute_result"
7779
}
7880
],
7981
"source": [
@@ -118,8 +120,9 @@
118120
"Output()"
119121
]
120122
},
123+
"execution_count": 6,
121124
"metadata": {},
122-
"output_type": "display_data"
125+
"output_type": "execute_result"
123126
}
124127
],
125128
"source": [
@@ -165,8 +168,9 @@
165168
"Output()"
166169
]
167170
},
171+
"execution_count": 8,
168172
"metadata": {},
169-
"output_type": "display_data"
173+
"output_type": "execute_result"
170174
}
171175
],
172176
"source": [
@@ -211,8 +215,9 @@
211215
"Output()"
212216
]
213217
},
218+
"execution_count": 10,
214219
"metadata": {},
215-
"output_type": "display_data"
220+
"output_type": "execute_result"
216221
}
217222
],
218223
"source": [
@@ -249,8 +254,9 @@
249254
"Output()"
250255
]
251256
},
257+
"execution_count": 12,
252258
"metadata": {},
253-
"output_type": "display_data"
259+
"output_type": "execute_result"
254260
}
255261
],
256262
"source": [
@@ -276,8 +282,9 @@
276282
"Output()"
277283
]
278284
},
285+
"execution_count": 13,
279286
"metadata": {},
280-
"output_type": "display_data"
287+
"output_type": "execute_result"
281288
}
282289
],
283290
"source": [
@@ -296,11 +303,20 @@
296303
" print('in outer')\n",
297304
" print('also in inner')"
298305
]
306+
},
307+
{
308+
"cell_type": "code",
309+
"execution_count": null,
310+
"metadata": {},
311+
"outputs": [],
312+
"source": []
299313
}
300314
],
301315
"metadata": {
302316
"kernelspec": {
303-
"language": "python"
317+
"display_name": "Python 3 (ipykernel)",
318+
"language": "python",
319+
"name": "python3"
304320
},
305321
"language_info": {
306322
"codemirror_mode": {
@@ -312,7 +328,7 @@
312328
"name": "python",
313329
"nbconvert_exporter": "python",
314330
"pygments_lexer": "ipython3",
315-
"version": "3.7.3"
331+
"version": "3.9.13"
316332
},
317333
"widgets": {
318334
"application/vnd.jupyter.widget-state+json": {
@@ -772,5 +788,5 @@
772788
}
773789
},
774790
"nbformat": 4,
775-
"nbformat_minor": 2
791+
"nbformat_minor": 4
776792
}

0 commit comments

Comments
 (0)