Commit 9c540ec9 authored by Agata Malgorzata Chadaj's avatar Agata Malgorzata Chadaj
Browse files

wip

parent 8be51755
Pipeline #3175363 passed with stage
in 26 seconds
......@@ -24,8 +24,8 @@ def get_result():
result_nb = nbformat.read(result_path, as_version=4)
nb = outputs.NotebookOutput(result_nb)
try:
result_flag = nb.get_cells_by_tag('result')[0].get_cell_output(outputs.CellOutputType.STDOUT)[0]
full_result = nb.get_cells_by_tag('result')[1].get_cell_output(outputs.CellOutputType.STDOUT)[0]
result_flag = nb.get_cells_by_tag('result')[1].get_cell_output(outputs.CellOutputType.STDOUT)[0]
full_result = nb.get_cells_by_tag('result')[0].get_cell_output(outputs.CellOutputType.STDOUT)[0]
except IndexError:
return 'FAILED', ''
return result_flag, json.loads(full_result)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment