jupyter icon indicating copy to clipboard operation
jupyter copied to clipboard

jupyter-eval-buffer -- Error in ZMQ subprocess: invalid-read-syntax, ("#")

Open SciBourne opened this issue 4 years ago • 0 comments

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 ...

SciBourne avatar Feb 22 '21 18:02 SciBourne