mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-05 07:41:37 -05:00
jupyter-widgets-on-message: Error if a message gives an unsupported channel
This commit is contained in:
parent
089e0b7f17
commit
a2fb08c99f
1 changed files with 6 additions and 4 deletions
|
@ -108,10 +108,12 @@ callbacks."
|
|||
(let* ((msg-id (jupyter-message-id msg))
|
||||
(msg-type (jupyter-message-type-as-keyword
|
||||
(jupyter-message-type msg)))
|
||||
(channel (pcase (plist-get msg :channel)
|
||||
("shell" (oref client shell-channel))
|
||||
("iopub" (oref client iopub-channel))
|
||||
("stdin" (oref client stdin-channel))))
|
||||
(channel (slot-value
|
||||
client (pcase (plist-get msg :channel)
|
||||
("shell" 'shell-channel)
|
||||
("iopub" 'iopub-channel)
|
||||
("stdin" 'stdin-channel)
|
||||
(_ (error "Invalid channel")))))
|
||||
(content (jupyter-message-content msg))
|
||||
(jupyter-inhibit-handlers
|
||||
;; Only let the browser handle these messages
|
||||
|
|
Loading…
Add table
Reference in a new issue