jupyter-start-kernel: Create jupyter-runtime-directory is necessary

Closes #3
This commit is contained in:
Nathaniel Nicandro 2018-12-10 21:45:41 -06:00
parent ad3ba3bdf5
commit 7e42bdd80e
No known key found for this signature in database
GPG key ID: C34814B309DD06B8

View file

@ -192,6 +192,8 @@ kernel. Starting a kernel involves the following steps:
(conn-file (make-temp-file "emacs-kernel-" nil ".json")))
;; Write the connection info file
(let ((json-encoding-pretty-print t))
(unless (file-directory-p jupyter-runtime-directory)
(make-directory jupyter-runtime-directory 'parents))
(with-temp-file conn-file
(insert (json-encode-plist conn-info))))
;; Start the process