mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-05 23:41:38 -05:00
jupyter-channel-alive-p: Handle an invalid ioloop process
This commit is contained in:
parent
fafdf0d1b2
commit
67befbc10c
1 changed files with 3 additions and 2 deletions
|
@ -484,9 +484,10 @@ kernel via CLIENT's ioloop."
|
|||
|
||||
(cl-defmethod jupyter-channel-alive-p ((client jupyter-kernel-client) channel)
|
||||
(cl-assert (memq channel '(:hb :stdin :shell :iopub)) t)
|
||||
(with-slots (channels) client
|
||||
(with-slots (ioloop channels) client
|
||||
(if (not (eq channel :hb))
|
||||
(plist-get (plist-get channels channel) :alive-p)
|
||||
(when (and ioloop (jupyter-ioloop-alive-p ioloop))
|
||||
(plist-get (plist-get channels channel) :alive-p))
|
||||
(setq channel (plist-get channels :hb))
|
||||
;; The hb channel is implemented locally in the current process whereas the
|
||||
;; other channels are implemented in subprocesses and the current process
|
||||
|
|
Loading…
Add table
Reference in a new issue