jupyter
jupyter copied to clipboard
jupyter-eval-buffer -- Error in ZMQ subprocess: invalid-read-syntax, ("#")
When I run the jupyter-eval-buffer function, I get the error message:
error in process filter: Error in ZMQ subprocess: invalid-read-syntax, ("#")
This error appears when there are indents in code blocks. I use a temporary hack for this case:
(defun jupyter-eval-buffer-test ()
(interactive)
(jupyter-eval-string
(encode-coding-string (with-current-buffer (current-buffer) (buffer-string)) 'utf-8)))
(global-set-key (kbd "C-c b") 'jupyter-eval-buffer-test)
I don’t know, maybe it will be useful ...