mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-05 15:41:37 -05:00
Ensure kernel connection file is finished writing before reading from it
This commit is contained in:
parent
ab2931beb6
commit
76de6a8b4a
1 changed files with 2 additions and 0 deletions
|
@ -109,6 +109,8 @@ in the jupyter runtime directory."
|
|||
(shell-command-to-string "jupyter --runtime-dir")))))
|
||||
(while (not (file-exists-p path))
|
||||
(sleep-for 0 10))
|
||||
;; FIXME: Ensure that the file is done writing
|
||||
(sleep-for 1)
|
||||
(let ((client (jupyter-kernel-client-from-connection-file path)))
|
||||
(set-process-query-on-exit-flag proc nil)
|
||||
(oset client kernel proc)
|
||||
|
|
Loading…
Add table
Reference in a new issue