mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-05 07:41:37 -05:00
Check if kernel is alive before attempting to execute cell
This commit is contained in:
parent
f67a486e9a
commit
a363f639dd
1 changed files with 6 additions and 2 deletions
|
@ -967,8 +967,12 @@ execute the current cell."
|
|||
(goto-char (point-max))
|
||||
(jupyter-repl-cell-beginning-position)))
|
||||
(goto-char (point-max))
|
||||
(if force
|
||||
(jupyter-execute-request jupyter-repl-current-client)
|
||||
(unless (or (and jupyter-repl-kernel-manager
|
||||
(jupyter-kernel-alive-p jupyter-repl-kernel-manager))
|
||||
(jupyter-hb-beating-p
|
||||
(oref jupyter-repl-current-client hb-channel)))
|
||||
(error "Kernel not alive"))
|
||||
(if force (jupyter-execute-request jupyter-repl-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