Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion jupyter_server_nbmodel/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def _stdin_hook(kernel_id: str, request_id: str, pending_input: PendingInput, ms
f"Execution request {kernel_id} received a input request while waiting for an input.\n{msg}" # noqa: E501
)
header = msg["header"].copy()
header["date"] = header["date"].isoformat()
header["date"] = header["date"] if isinstance(header["date"], str) else header["date"].isoformat()
pending_input.request_id = request_id
pending_input.content = InputDescription(
parent_header=header, input_request=InputRequest(**msg["content"])
Expand Down Expand Up @@ -269,6 +269,10 @@ async def kernel_worker(
client.session.session = uid
# FIXME
# client.session.username = username
from jupyter_server.gateway.managers import GatewayKernelClient
if isinstance(client,GatewayKernelClient) and client.channel_socket is None:
get_logger().debug(f"start channels {kernel_id}")
await client.start_channels()
results[uid] = await _execute_snippet(
client, ydoc, snippet, metadata, partial(_stdin_hook, kernel_id, uid, pending_input)
)
Expand Down
Loading