mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-05 07:41:37 -05:00
jupyter-repl-restart-kernel: Inhibit handlers except :shutdown-reply
See https://github.com/dzop/emacs-jupyter/pull/45#discussion_r262015539.
This commit is contained in:
parent
81ecc0ec31
commit
764bf6f717
1 changed files with 3 additions and 2 deletions
|
@ -1387,8 +1387,9 @@ the kernel `jupyter-current-client' is connected to."
|
|||
(message "%s kernel..." (if shutdown "Shutting down"
|
||||
"Restarting"))
|
||||
(when (and (null (jupyter-wait-until-received :shutdown-reply
|
||||
(jupyter-send-shutdown-request client
|
||||
:restart (not shutdown))))
|
||||
(let ((jupyter-inhibit-handlers '(not :shutdown-reply)))
|
||||
(jupyter-send-shutdown-request client
|
||||
:restart (not shutdown)))))
|
||||
(not shutdown))
|
||||
;; Handle the case of a restart that does not send a shutdown-reply
|
||||
;;
|
||||
|
|
Loading…
Add table
Reference in a new issue