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 2a68cad commit 2836a20Copy full SHA for 2836a20
1 file changed
clients/python/test/e2e/test_notebooks.py
@@ -80,14 +80,16 @@ def _papermill_execute_notebook(
80
81
output: Path = tmp_path / (tmp_nb.stem + "_output.ipynb")
82
83
- pm.execute_notebook(
84
- input_path=tmp_nb,
85
- output_path=output,
86
- kernel_name="python3",
87
- parameters=parameters,
88
- execution_timeout=_NOTEBOOK_EXECUTION_TIMEOUT_SECONDS,
89
- )
90
- _pretty_print_cell_outputs(output)
+ try:
+ pm.execute_notebook(
+ input_path=tmp_nb,
+ output_path=output,
+ kernel_name="python3",
+ parameters=parameters,
+ execution_timeout=_NOTEBOOK_EXECUTION_TIMEOUT_SECONDS,
+ )
91
+ finally:
92
+ _pretty_print_cell_outputs(output)
93
return output
94
95
0 commit comments