Upgrade repl dependencies (#21431)
Bump dependencies for jupyter packages. cc @maxdeviant Release Notes: - N/A
This commit is contained in:
parent
7c994cd4a5
commit
579bc8f015
4 changed files with 48 additions and 147 deletions
|
@ -6,9 +6,12 @@ use futures::{
|
|||
AsyncBufReadExt as _, SinkExt as _,
|
||||
};
|
||||
use gpui::{EntityId, Task, View, WindowContext};
|
||||
use jupyter_protocol::{JupyterKernelspec, JupyterMessage, JupyterMessageContent, KernelInfoReply};
|
||||
use jupyter_protocol::{
|
||||
connection_info::{ConnectionInfo, Transport},
|
||||
ExecutionState, JupyterKernelspec, JupyterMessage, JupyterMessageContent, KernelInfoReply,
|
||||
};
|
||||
use project::Fs;
|
||||
use runtimelib::{dirs, ConnectionInfo, ExecutionState};
|
||||
use runtimelib::dirs;
|
||||
use smol::{net::TcpListener, process::Command};
|
||||
use std::{
|
||||
env,
|
||||
|
@ -119,7 +122,7 @@ impl NativeRunningKernel {
|
|||
let ports = peek_ports(ip).await?;
|
||||
|
||||
let connection_info = ConnectionInfo {
|
||||
transport: "tcp".to_string(),
|
||||
transport: Transport::TCP,
|
||||
ip: ip.to_string(),
|
||||
stdin_port: ports[0],
|
||||
control_port: ports[1],
|
||||
|
|
|
@ -334,9 +334,11 @@ impl ExecutionView {
|
|||
result.transient.as_ref().and_then(|t| t.display_id.clone()),
|
||||
cx,
|
||||
),
|
||||
JupyterMessageContent::DisplayData(result) => {
|
||||
Output::new(&result.data, result.transient.display_id.clone(), cx)
|
||||
}
|
||||
JupyterMessageContent::DisplayData(result) => Output::new(
|
||||
&result.data,
|
||||
result.transient.as_ref().and_then(|t| t.display_id.clone()),
|
||||
cx,
|
||||
),
|
||||
JupyterMessageContent::StreamContent(result) => {
|
||||
// Previous stream data will combine together, handling colors, carriage returns, etc
|
||||
if let Some(new_terminal) = self.apply_terminal_text(&result.text, cx) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue