summaryrefslogtreecommitdiff
path: root/cli/tools/jupyter/server.rs
diff options
context:
space:
mode:
authorKyle Kelley <rgbkrk@gmail.com>2024-05-29 15:46:47 -0700
committerGitHub <noreply@github.com>2024-05-29 22:46:47 +0000
commitcf611fbf548ea0bbd38c82ab02249b7a2aa3b3c9 (patch)
tree9496fd5f9ba9ada84bfcef29a919801a8df03517 /cli/tools/jupyter/server.rs
parent3d3722507e1964cba66161e3e2e7b538bc23f29c (diff)
chore: upgrade jupyter runtimelib to 0.11.0 (#24036)
Brings in: * More fully typed structures (for when we get to implementing more) * `with_metadata`, `with_buffers`, etc. from https://github.com/runtimed/runtimed/pull/99 --------- Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/tools/jupyter/server.rs')
-rw-r--r--cli/tools/jupyter/server.rs31
1 files changed, 15 insertions, 16 deletions
diff --git a/cli/tools/jupyter/server.rs b/cli/tools/jupyter/server.rs
index 3d273ee74..36f4d5c18 100644
--- a/cli/tools/jupyter/server.rs
+++ b/cli/tools/jupyter/server.rs
@@ -19,19 +19,18 @@ use deno_core::CancelHandle;
use tokio::sync::mpsc;
use tokio::sync::Mutex;
-use runtimelib::ConnectionInfo;
-use runtimelib::KernelControlConnection;
-use runtimelib::KernelHeartbeatConnection;
-use runtimelib::KernelIoPubConnection;
-use runtimelib::KernelShellConnection;
-
-use runtimelib::messaging;
-use runtimelib::AsChildOf;
-use runtimelib::JupyterMessage;
-use runtimelib::JupyterMessageContent;
-use runtimelib::ReplyError;
-use runtimelib::ReplyStatus;
-use runtimelib::StreamContent;
+use jupyter_runtime::messaging;
+use jupyter_runtime::AsChildOf;
+use jupyter_runtime::ConnectionInfo;
+use jupyter_runtime::JupyterMessage;
+use jupyter_runtime::JupyterMessageContent;
+use jupyter_runtime::KernelControlConnection;
+use jupyter_runtime::KernelHeartbeatConnection;
+use jupyter_runtime::KernelIoPubConnection;
+use jupyter_runtime::KernelShellConnection;
+use jupyter_runtime::ReplyError;
+use jupyter_runtime::ReplyStatus;
+use jupyter_runtime::StreamContent;
pub struct JupyterServer {
execution_count: usize,
@@ -455,7 +454,7 @@ impl JupyterServer {
messaging::ExecuteReply {
execution_count: self.execution_count,
status: ReplyStatus::Error,
- payload: None,
+ payload: Default::default(),
user_expressions: None,
error: None,
}
@@ -481,7 +480,7 @@ impl JupyterServer {
execution_count: self.execution_count,
status: ReplyStatus::Ok,
user_expressions: None,
- payload: None,
+ payload: Default::default(),
error: None,
}
.as_child_of(parent_message),
@@ -586,7 +585,7 @@ impl JupyterServer {
traceback,
}),
user_expressions: None,
- payload: None,
+ payload: Default::default(),
}
.as_child_of(parent_message),
)