summaryrefslogtreecommitdiff
path: root/cli/tools/jupyter/server.rs
diff options
context:
space:
mode:
authorKyle Kelley <rgbkrk@gmail.com>2023-09-16 19:02:21 -0700
committerGitHub <noreply@github.com>2023-09-17 02:02:21 +0000
commit3b2e553b05d84ea9de15d27b8e4ef5544e541cb1 (patch)
treec98b11ac12c0d8cb8640b9399b9099c42f32acd2 /cli/tools/jupyter/server.rs
parente995ba66cd7400e0c87af6e530e74a6aa7c7c934 (diff)
set `evalue` to a one space string for truthiness on old jupyter (#20531)
"Fixes" the exception display issue of #20524 on older versions of Jupyter that required `evalue` to be truthy. For now, until we can do proper processing of the `ExceptionDetails` this will make Jupyter Notebook 6.5.1 and below happy. This is the alternative "just work now" PR to #20530
Diffstat (limited to 'cli/tools/jupyter/server.rs')
-rw-r--r--cli/tools/jupyter/server.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/tools/jupyter/server.rs b/cli/tools/jupyter/server.rs
index c15dab6c2..e3e712065 100644
--- a/cli/tools/jupyter/server.rs
+++ b/cli/tools/jupyter/server.rs
@@ -358,7 +358,7 @@ impl JupyterServer {
.new_message("error")
.with_content(json!({
"ename": err.to_string(),
- "evalue": "",
+ "evalue": " ", // Fake value, otherwise old Jupyter frontends don't show the error
"traceback": [],
}))
.send(&mut *self.iopub_socket.lock().await)
@@ -425,7 +425,7 @@ impl JupyterServer {
.new_message("error")
.with_content(json!({
"ename": name,
- "evalue": "",
+ "evalue": " ", // Fake value, otherwise old Jupyter frontends don't show the error
"traceback": [],
}))
.send(&mut *self.iopub_socket.lock().await)