mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-06 16:01:37 -05:00
Move some code to a more appropriate place
This commit is contained in:
parent
0b32635a3a
commit
07bdc46a87
1 changed files with 3 additions and 2 deletions
|
@ -448,6 +448,9 @@ when it is idle."
|
||||||
(jupyter-with-client jupyter-current-client
|
(jupyter-with-client jupyter-current-client
|
||||||
(let ((client jupyter-current-client))
|
(let ((client jupyter-current-client))
|
||||||
(jupyter-mlet* ((req io-req))
|
(jupyter-mlet* ((req io-req))
|
||||||
|
(when (string= (jupyter-request-type req)
|
||||||
|
"execute_request")
|
||||||
|
(jupyter-server-mode-set-client client))
|
||||||
(jupyter-run-with-io
|
(jupyter-run-with-io
|
||||||
(jupyter-request-message-publisher req)
|
(jupyter-request-message-publisher req)
|
||||||
(jupyter-subscribe
|
(jupyter-subscribe
|
||||||
|
@ -529,8 +532,6 @@ when it is idle."
|
||||||
(jupyter-publish
|
(jupyter-publish
|
||||||
(list 'send ch type content
|
(list 'send ch type content
|
||||||
(jupyter-request-id req)))))
|
(jupyter-request-id req)))))
|
||||||
(when (string= type "execute")
|
|
||||||
(jupyter-server-mode-set-client jupyter-current-client))
|
|
||||||
req)))))
|
req)))))
|
||||||
|
|
||||||
(cl-defun jupyter-request (type &rest content)
|
(cl-defun jupyter-request (type &rest content)
|
||||||
|
|
Loading…
Add table
Reference in a new issue