Skip to content

Commit 458ab40

Browse files
committed
flush stdout and stderr in notebook eval
1 parent 4e39781 commit 458ab40

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/packages/VSCodeServer/src/serve_notebook.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@ function notebook_runcell_request(conn, params::NotebookRunCellArguments)
2525
error_type = string(typeof(inner_err))
2626

2727
try
28-
st = stacktrace(bt)
29-
3028
error_message_str = Base.invokelatest(sprint, showerror, inner_err)
3129
traceback = Base.invokelatest(sprint, Base.show_backtrace, bt)
3230

31+
flush(stdout)
32+
flush(stderr)
33+
3334
return (success = false, error = (message = error_message_str, name = error_type, stack = string(error_message_str, "\n", traceback)))
3435
catch err
3536
return (success = false, error = (message = "Error trying to display an error.", name = error_type, stack = "Error trying to display an error."))

0 commit comments

Comments
 (0)