Upgrade repl dependencies (#21431)

Bump dependencies for jupyter packages. cc @maxdeviant 

Release Notes:

- N/A
This commit is contained in:
Kyle Kelley 2024-12-02 15:22:03 -08:00 committed by GitHub
parent 7c994cd4a5
commit 579bc8f015
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 48 additions and 147 deletions

View file

@ -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],

View file

@ -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) {