From 6b786f2c96ea64c021a25792805ae190ab1a816f Mon Sep 17 00:00:00 2001 From: Marcin Apostoluk Date: Thu, 29 Feb 2024 16:21:14 +0000 Subject: [PATCH] show full stdout for errored notebooks --- notebooker/constants.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/notebooker/constants.py b/notebooker/constants.py index a957a06..4fba4cb 100644 --- a/notebooker/constants.py +++ b/notebooker/constants.py @@ -128,8 +128,10 @@ class NotebookResultError(NotebookResultBase): @property def raw_html(self): - return """

This job resulted in an error:
{}

""".format( - self.error_info + formatted_stdout = "
".join(self.stdout) if self.stdout else "" + return """

This job resulted in an error:
{}

+

stdout

{}""".format( + self.error_info, formatted_stdout ) @property