Skip to content

Commit b0cfdb0

Browse files
committed
jupyter - use status() directly to make clear this is using same output as other status() call
1 parent a728f51 commit b0cfdb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/resources/jupyter/jupyter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
from log import log_init, log, log_error, trace
2121
from notebook import notebook_execute, RestartKernel
22+
from nbclient.exceptions import CellExecutionError
2223

2324
import asyncio
2425
if sys.platform == 'win32':
@@ -241,8 +242,7 @@ def run_notebook(options, status):
241242
loc = msg.find(kCellExecutionError)
242243
if loc != -1:
243244
msg = msg[loc + len(kCellExecutionError):]
244-
sys.stderr.write("\n\n" + msg + "\n")
245-
sys.stderr.flush()
245+
status("\n\n" + msg + "\n")
246246
sys.exit(1)
247247

248248

0 commit comments

Comments
 (0)