mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-06 07:51:39 -05:00
Remove conn
slot of a client and clients
slot of a kernel
This commit is contained in:
parent
4abf0d0714
commit
58f281c7fc
2 changed files with 5 additions and 8 deletions
|
@ -212,8 +212,6 @@ client is expecting a reply from the kernel.")
|
|||
initializing this client. When `jupyter-start-channels' is
|
||||
called, this will be set to the kernel info plist returned
|
||||
from an initial `:kernel-info-request'.")
|
||||
(conn
|
||||
:documentation "A `jupyter-connection' representing the client-kernel connection.")
|
||||
(session
|
||||
:type jupyter-session
|
||||
:documentation "The session for this client.")
|
||||
|
@ -310,8 +308,10 @@ method is called."
|
|||
|
||||
(cl-defmethod jupyter-kernel-alive-p ((client jupyter-kernel-client))
|
||||
"Return non-nil if the kernel CLIENT is connected to is alive."
|
||||
(when-let* ((kernel (jupyter-kernel client)))
|
||||
(and (slot-boundp client 'conn)
|
||||
(jupyter-alive-p (oref client conn))))
|
||||
(jupyter-alive-p kernel)
|
||||
(jupyter-alive-p (jupyter-io kernel)))))
|
||||
|
||||
(cl-defmethod jupyter-clients ()
|
||||
"Return a list of all `jupyter-kernel-client' objects."
|
||||
|
|
|
@ -43,10 +43,7 @@
|
|||
:type jupyter-kernelspec
|
||||
:documentation "The kernelspec of this kernel.")
|
||||
;; FIXME: Remove this slot, used by `jupyter-widget-client'.
|
||||
(session nil :type jupyter-session)
|
||||
(clients nil
|
||||
:type (list-of jupyter-kernel-client)
|
||||
:documentation "List of clients able to receive messages."))
|
||||
(session nil :type jupyter-session))
|
||||
|
||||
(cl-defmethod jupyter-alive-p ((kernel jupyter-kernel))
|
||||
"Return non-nil if KERNEL has been launched."
|
||||
|
|
Loading…
Add table
Reference in a new issue