Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 4 additions & 0 deletions src/nbexec/daemon/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ async def _exec_with_disconnect(self, session, code, reader):

if exec_future in done:
disconnect.cancel()
try:
await disconnect
except asyncio.CancelledError:
pass
return exec_future.result()

# reader.read returned — check if it's truly EOF
Expand Down
2 changes: 1 addition & 1 deletion src/nbexec/session/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def execute(self, code: str) -> dict:
self._execution_count += 1

try:
reply = self.kernel.execute(code)
reply = self.kernel.execute(code, timeout=None)
except Exception as e:
error_output = {
"output_type": "error",
Expand Down
Loading