-
-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Description
Problem
jupyter-server-nbmodel/jupyter_server_nbmodel/handlers.py
Lines 125 to 131 in b122d68
reply = await ensure_async( | |
client.execute_interactive( | |
snippet, | |
output_hook=self._output_hook, | |
stdin_hook=self._stdin_hook if client.allow_stdin else None, | |
) | |
) |
I've found that current implementations where cell takes longer to execute can lead to http request timeouts (especially behind some reverse proxies), and it's difficult for the front-end to determine if the request to execute the code was successfully sent.
Proposed Solution
- We can simply support asynchronous mode: do execute and safe in an asyncio.Task.
- Maybe we need an optimistic lock to prevent racing when concurrent write to the ynotebook.
Additional context
Metadata
Metadata
Assignees
Labels
No labels