mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-05 07:41:37 -05:00
jupyter-repl-ret: Don't send messages when the kernel is busy
This commit is contained in:
parent
f85993e2ba
commit
260ba128eb
1 changed files with 2 additions and 3 deletions
|
@ -1003,10 +1003,9 @@ execute the current cell."
|
|||
;; sending a request when the kernel is busy because of the
|
||||
;; is-complete request. Some kernels don't respond to this request
|
||||
;; when the kernel is busy.
|
||||
(unless (member (jupyter-execution-state jupyter-current-client)
|
||||
'("starting" "idle"))
|
||||
(jupyter-repl-sync-execution-state)
|
||||
(when (jupyter-kernel-busy-p jupyter-current-client)
|
||||
(error "Kernel busy"))
|
||||
(jupyter-repl-sync-execution-state)
|
||||
(if force (jupyter-send-execute-request jupyter-current-client)
|
||||
(if (not jupyter-repl-use-builtin-is-complete)
|
||||
(let ((res (jupyter-wait-until-received :is-complete-reply
|
||||
|
|
Loading…
Add table
Reference in a new issue