mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-06 07:51:39 -05:00
Remove jupyter-last-sent-request
This commit is contained in:
parent
f48900213f
commit
b46cf42aa3
3 changed files with 4 additions and 9 deletions
|
@ -461,10 +461,6 @@ response to the sent message, see `jupyter-add-callback' and
|
|||
(cl-defmethod jupyter-send ((type string) &rest content)
|
||||
(jupyter-send jupyter-current-client type content))
|
||||
|
||||
(defsubst jupyter-last-sent-request (client)
|
||||
"Return the most recent `jupyter-request' made by CLIENT."
|
||||
(gethash "last-sent" (oref client requests)))
|
||||
|
||||
;;; Starting communication with a kernel
|
||||
|
||||
(cl-defmethod jupyter-alive-p ((client jupyter-kernel-client) &optional channel)
|
||||
|
|
|
@ -2145,7 +2145,7 @@ print(\"foo\", flush=True)
|
|||
(org-babel-previous-src-block)
|
||||
(org-babel-execute-src-block)
|
||||
(with-current-buffer (org-babel-initiate-session)
|
||||
(jupyter-wait-until-idle (jupyter-last-sent-request jupyter-current-client)))
|
||||
(sleep-for 1))
|
||||
(org-back-to-heading)
|
||||
(org-down-element)
|
||||
(should (eq (org-element-type (org-element-context)) 'plain-list))
|
||||
|
|
|
@ -503,10 +503,9 @@ results instead of an equality match."
|
|||
(save-window-excursion
|
||||
(org-babel-execute-src-block nil info)
|
||||
(when (equal (alist-get :async args) "yes")
|
||||
(jupyter-idle-sync
|
||||
(jupyter-last-sent-request
|
||||
(jupyter-org-test-client-from-info info)))))
|
||||
(org-with-point-at (org-babel-where-is-src-block-result nil info)
|
||||
;; Add a delay to try and ensure the last request of the
|
||||
;; client has been completed.
|
||||
(sleep-for 0.2))
|
||||
(let ((element (org-element-context)))
|
||||
;; Handle empty results with just a RESULTS keyword
|
||||
;;
|
||||
|
|
Loading…
Add table
Reference in a new issue