mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-08 16:41:39 -05:00
Fix return value of jupyter-zmq-io
This commit is contained in:
parent
11456b4a4a
commit
ea199e3f77
1 changed files with 15 additions and 6 deletions
|
@ -204,12 +204,21 @@ Call the next method if ARGS does not contain :spec."
|
|||
(jupyter-run-with-io (cadr content)
|
||||
(jupyter-publish hb)))
|
||||
(_ (error "Unhandled I/O: %s" content)))))))
|
||||
(jupyter-return-delayed
|
||||
(list kernel-io
|
||||
(lambda ()
|
||||
(and hb (jupyter-hb-pause hb))
|
||||
(stop)
|
||||
(setq hb nil ioloop nil discarded t))))))))
|
||||
(list kernel-io
|
||||
(jupyter-subscriber
|
||||
(lambda (action)
|
||||
(pcase action
|
||||
('interrupt
|
||||
(jupyter-interrupt kernel))
|
||||
('shutdown
|
||||
(jupyter-shutdown kernel)
|
||||
(and hb (jupyter-hb-pause hb))
|
||||
(stop)
|
||||
(setq hb nil ioloop nil discarded t))
|
||||
('restart
|
||||
(jupyter-restart kernel))
|
||||
(`(action ,fn)
|
||||
(funcall fn kernel))))))))))
|
||||
|
||||
(cl-defmethod jupyter-io ((kernel jupyter-kernel-process))
|
||||
"Return an I/O connection to KERNEL's session."
|
||||
|
|
Loading…
Add table
Reference in a new issue