mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-05 15:41:37 -05:00
jupyter-eval-string: Better validation of jupyter-current-client
This commit is contained in:
parent
d0ccb98ae5
commit
32d886cf7e
1 changed files with 2 additions and 2 deletions
|
@ -1029,8 +1029,8 @@ CB is a function to call with the `:execute-result' message when
|
|||
the evalution is successful. When CB is nil, its behavior defaults
|
||||
to the above explanation."
|
||||
(interactive (list (jupyter-read-expression) nil))
|
||||
(unless jupyter-current-client
|
||||
(user-error "No `jupyter-current-client' set"))
|
||||
(cl-check-type jupyter-current-client jupyter-kernel-client
|
||||
"Not a valid client")
|
||||
(let* ((jupyter-inhibit-handlers t)
|
||||
(req (jupyter-send-execute-request jupyter-current-client
|
||||
:code str :store-history nil))
|
||||
|
|
Loading…
Add table
Reference in a new issue