millejoh / emacs-ipython-notebook

Jupyter notebook client in Emacs
http://millejoh.github.io/emacs-ipython-notebook/
GNU General Public License v3.0
1.47k stars 122 forks source link

Add support for Clojuypter Kernel for Jupyter #686

Closed vxe closed 4 years ago

vxe commented 4 years ago

I'm running to what appears to a similar issue as:

https://github.com/millejoh/emacs-ipython-notebook/issues/589

when setting up clojupyter

image

I'm seeing a kernel appear ein:notebooklist, enableing ein:poly-mode, and toggle-debug-on-error and then clicking New Notebook I get

Debugger entered--Lisp error: (error "ein:notebook-open--callback: notebook instantiation failed")
  signal(error ("ein:notebook-open--callback: notebook instantiation failed"))
  error("ein:notebook-open--callback: notebook instantiation failed")
  ein:notebook-open--callback(#s(ein:$notebook :url-or-port "http://127.0.0.1:8889" :notebook-id nil :notebook-path "Untitled.ipynb" :kernel #s(ein:$kernel :url-or-port "http://127.0.0.1:8889" :path "Untitled.ipynb" :kernelspec #s(ein:$kernelspec :name "fml-kernel" :display-name "Clojure (fml-kernel)" :resources (:logo-64x64 "/kernelspecs/fml-kernel/logo-64x64.png") :spec (:interrupt_mode "message" :display_name "Clojure (fml-kernel)" :env nil :language "clojure" :argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :metadata nil) :language "clojure") :events #<ein:events ein:events> :api-version 5 :session-id "be117fd8-372a-4d56-b5ca-3334cae647b9" :kernel-id nil :shell-channel nil :iopub-channel nil :websocket nil :base-url "/api/kernels" :kernel-url nil :ws-url nil :stdin-activep nil :username "username" :msg-callbacks #<hash-table equal 0/65 0x428ff5ad> :oinfo-cache #<hash-table equal 0/65 0x4290b449> :after-start-hook nil :after-execute-hook nil) :kernelinfo nil :kernelspec #s(ein:$kernelspec :name "fml-kernel" :display-name "Clojure (fml-kernel)" :resources (:logo-64x64 "/kernelspecs/fml-kernel/logo-64x64.png") :spec (:interrupt_mode "message" :display_name "Clojure (fml-kernel)" :env nil :language "clojure" :argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :metadata nil) :language "clojure") :pager "*ein:pager http://127.0.0.1:8889/Untitled.ipynb*" :dirty nil :metadata (:kernelspec (:interrupt_mode "message" :display_name "Clojure (fml-kernel)" :name "fml-kernel" :language "clojure" :env nil :argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :metadata nil) :name "Untitled.ipynb") :notebook-name "Untitled.ipynb" :nbformat 4 :nbformat-minor 4 :events #<ein:events ein:events> :worksheets (#<ein:worksheet ein:worksheet>) :scratchsheets nil :api-version 5) #f(compiled-function (&rest args2) #<bytecode 0x51aaf651>) #s(ein:$content :url-or-port "http://127.0.0.1:8889" :notebook-version 5 :name "Untitled.ipynb" :path "Untitled.ipynb" :type "notebook" :writable t :created "2020-03-14T15:26:17.714944Z" :last-modified "2020-03-14T15:26:17.714944Z" :mimetype nil :raw-content (:nbformat_minor 4 :cells ((:execution_count nil :cell_type "code" :source "" :outputs nil :metadata (:collapsed :json-false :trusted t))) :nbformat 4 :metadata (:kernelspec (:interrupt_mode "message" :display_name "Clojure (fml-kernel)" :name "fml-kernel" :language "clojure" :env nil :argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :metadata nil) :name "Untitled.ipynb")) :format "json" :session-p nil))
  apply(ein:notebook-open--callback (#s(ein:$notebook :url-or-port "http://127.0.0.1:8889" :notebook-id nil :notebook-path "Untitled.ipynb" :kernel #s(ein:$kernel :url-or-port "http://127.0.0.1:8889" :path "Untitled.ipynb" :kernelspec #s(ein:$kernelspec :name "fml-kernel" :display-name "Clojure (fml-kernel)" :resources (:logo-64x64 "/kernelspecs/fml-kernel/logo-64x64.png") :spec (:interrupt_mode "message" :display_name "Clojure (fml-kernel)" :env nil :language "clojure" :argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :metadata nil) :language "clojure") :events #<ein:events ein:events> :api-version 5 :session-id "be117fd8-372a-4d56-b5ca-3334cae647b9" :kernel-id nil :shell-channel nil :iopub-channel nil :websocket nil :base-url "/api/kernels" :kernel-url nil :ws-url nil :stdin-activep nil :username "username" :msg-callbacks #<hash-table equal 0/65 0x428ff5ad> :oinfo-cache #<hash-table equal 0/65 0x4290b449> :after-start-hook nil :after-execute-hook nil) :kernelinfo nil :kernelspec #s(ein:$kernelspec :name "fml-kernel" :display-name "Clojure (fml-kernel)" :resources (:logo-64x64 "/kernelspecs/fml-kernel/logo-64x64.png") :spec (:interrupt_mode "message" :display_name "Clojure (fml-kernel)" :env nil :language "clojure" :argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :metadata nil) :language "clojure") :pager "*ein:pager http://127.0.0.1:8889/Untitled.ipynb*" :dirty nil :metadata (:kernelspec (:interrupt_mode "message" :display_name "Clojure (fml-kernel)" :name "fml-kernel" :language "clojure" :env nil :argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :metadata nil) :name "Untitled.ipynb") :notebook-name "Untitled.ipynb" :nbformat 4 :nbformat-minor 4 :events #<ein:events ein:events> :worksheets (#<ein:worksheet ein:worksheet>) :scratchsheets nil :api-version 5) #f(compiled-function (&rest args2) #<bytecode 0x51aaf651>) #s(ein:$content :url-or-port "http://127.0.0.1:8889" :notebook-version 5 :name "Untitled.ipynb" :path "Untitled.ipynb" :type "notebook" :writable t :created "2020-03-14T15:26:17.714944Z" :last-modified "2020-03-14T15:26:17.714944Z" :mimetype nil :raw-content (:nbformat_minor 4 :cells ((:execution_count nil :cell_type "code" :source "" :outputs nil :metadata (:collapsed :json-false :trusted t))) :nbformat 4 :metadata (:kernelspec (:interrupt_mode "message" :display_name "Clojure (fml-kernel)" :name "fml-kernel" :language "clojure" :env nil :argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :metadata nil) :name "Untitled.ipynb")) :format "json" :session-p nil)))
  #f(compiled-function (&rest args2) #<bytecode 0x51aaf68d>)(#s(ein:$content :url-or-port "http://127.0.0.1:8889" :notebook-version 5 :name "Untitled.ipynb" :path "Untitled.ipynb" :type "notebook" :writable t :created "2020-03-14T15:26:17.714944Z" :last-modified "2020-03-14T15:26:17.714944Z" :mimetype nil :raw-content (:nbformat_minor 4 :cells ((:execution_count nil :cell_type "code" :source "" :outputs nil :metadata (:collapsed :json-false :trusted t))) :nbformat 4 :metadata (:kernelspec (:interrupt_mode "message" :display_name "Clojure (fml-kernel)" :name "fml-kernel" :language "clojure" :env nil :argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :metadata nil) :name "Untitled.ipynb")) :format "json" :session-p nil))
  ein:content-query-contents--success("http://127.0.0.1:8889" "Untitled.ipynb" #f(compiled-function (&rest args2) #<bytecode 0x51aaf68d>) :data (:mimetype nil :writable t :name "Untitled.ipynb" :format "json" :created "2020-03-14T15:26:17.714944Z" :content (:nbformat_minor 4 :cells ((:execution_count nil :cell_type "code" :source "" :outputs nil :metadata (:collapsed :json-false :trusted t))) :nbformat 4 :metadata (:kernelspec (:interrupt_mode "message" :display_name "Clojure (fml-kernel)" :name "fml-kernel" :language "clojure" :env nil :argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :metadata nil) :name "Untitled.ipynb")) :last_modified "2020-03-14T15:26:17.714944Z" :path "Untitled.ipynb" :type "notebook" :size 606) :symbol-status success :error-thrown nil :response #s(request-response :status-code 200 :history nil :data (:mimetype nil :writable t :name "Untitled.ipynb" :format "json" :created "2020-03-14T15:26:17.714944Z" :content (:nbformat_minor 4 :cells ((:execution_count nil :cell_type "code" :source "" :outputs nil :metadata (:collapsed :json-false :trusted t))) :nbformat 4 :metadata (:kernelspec (:interrupt_mode "message" :display_name "Clojure (fml-kernel)" :name "fml-kernel" :language "clojure" :env nil :argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :metadata nil) :name "Untitled.ipynb")) :last_modified "2020-03-14T15:26:17.714944Z" :path "Untitled.ipynb" :type "notebook" :size 606) :error-thrown nil :symbol-status success :url "http://127.0.0.1:8889/api/contents/Untitled.ipynb" :done-p nil :settings (:type "GET" :timeout nil :parser ein:json-read :complete #f(compiled-function (&rest args2) #<bytecode 0x51aaf6f5>) :success #f(compiled-function (&rest args2) #<bytecode 0x51aaf715>) :error #f(compiled-function (&rest args2) #<bytecode 0x51aaf735>) :sync nil :headers (("User-Agent" . "Mozilla/5.0") ("X-XSRFTOKEN" . "2|7b02f192|baa0b2eb8a4d3758ac7b3995f0921df4|1584081767")) :encoding binary :url "http://127.0.0.1:8889/api/contents/Untitled.ipynb" :response #1) :-buffer #<killed buffer> :-raw-header "HTTP/1.1 200 OK\nContent-Length: 768\nContent-Security-Policy: frame-ancestors 'self'; report-uri /api/security/csp-report; default-src 'none'\nX-Content-Type-Options: nosniff\nServer: TornadoServer/5.1.1\nLast-Modified: Sat, 14 Mar 2020 15:26:17 GMT\nEtag: \"9d4c293963a14f4e6d37dd5f25bd1e213b7d154d\"\nDate: Sat, 14 Mar 2020 15:36:32 GMT\nContent-Type: application/json\n" :-timer nil :-backend curl :-tempfiles nil))
  apply(ein:content-query-contents--success ("http://127.0.0.1:8889" "Untitled.ipynb" #f(compiled-function (&rest args2) #<bytecode 0x51aaf68d>) :data (:mimetype nil :writable t :name "Untitled.ipynb" :format "json" :created "2020-03-14T15:26:17.714944Z" :content (:nbformat_minor 4 :cells ((:execution_count nil :cell_type "code" :source "" :outputs nil :metadata (:collapsed :json-false :trusted t))) :nbformat 4 :metadata (:kernelspec (:interrupt_mode "message" :display_name "Clojure (fml-kernel)" :name "fml-kernel" :language "clojure" :env nil :argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :metadata nil) :name "Untitled.ipynb")) :last_modified "2020-03-14T15:26:17.714944Z" :path "Untitled.ipynb" :type "notebook" :size 606) :symbol-status success :error-thrown nil :response #s(request-response :status-code 200 :history nil :data (:mimetype nil :writable t :name "Untitled.ipynb" :format "json" :created "2020-03-14T15:26:17.714944Z" :content (:nbformat_minor 4 :cells ((:execution_count nil :cell_type "code" :source "" :outputs nil :metadata (:collapsed :json-false :trusted t))) :nbformat 4 :metadata (:kernelspec (:interrupt_mode "message" :display_name "Clojure (fml-kernel)" :name "fml-kernel" :language "clojure" :env nil :argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :metadata nil) :name "Untitled.ipynb")) :last_modified "2020-03-14T15:26:17.714944Z" :path "Untitled.ipynb" :type "notebook" :size 606) :error-thrown nil :symbol-status success :url "http://127.0.0.1:8889/api/contents/Untitled.ipynb" :done-p nil :settings (:type "GET" :timeout nil :parser ein:json-read :complete #f(compiled-function (&rest args2) #<bytecode 0x51aaf6f5>) :success #f(compiled-function (&rest args2) #<bytecode 0x51aaf715>) :error #f(compiled-function (&rest args2) #<bytecode 0x51aaf735>) :sync nil :headers (("User-Agent" . "Mozilla/5.0") ("X-XSRFTOKEN" . "2|7b02f192|baa0b2eb8a4d3758ac7b3995f0921df4|1584081767")) :encoding binary :url "http://127.0.0.1:8889/api/contents/Untitled.ipynb" :response #2) :-buffer #<killed buffer> :-raw-header "HTTP/1.1 200 OK\nContent-Length: 768\nContent-Security-Policy: frame-ancestors 'self'; report-uri /api/security/csp-report; default-src 'none'\nX-Content-Type-Options: nosniff\nServer: TornadoServer/5.1.1\nLast-Modified: Sat, 14 Mar 2020 15:26:17 GMT\nEtag: \"9d4c293963a14f4e6d37dd5f25bd1e213b7d154d\"\nDate: Sat, 14 Mar 2020 15:36:32 GMT\nContent-Type: application/json\n" :-timer nil :-backend curl :-tempfiles nil)))
  #f(compiled-function (&rest args2) #<bytecode 0x51aaf715>)(:data (:mimetype nil :writable t :name "Untitled.ipynb" :format "json" :created "2020-03-14T15:26:17.714944Z" :content (:nbformat_minor 4 :cells ((:execution_count nil :cell_type "code" :source "" :outputs nil :metadata (:collapsed :json-false :trusted t))) :nbformat 4 :metadata (:kernelspec (:interrupt_mode "message" :display_name "Clojure (fml-kernel)" :name "fml-kernel" :language "clojure" :env nil :argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :metadata nil) :name "Untitled.ipynb")) :last_modified "2020-03-14T15:26:17.714944Z" :path "Untitled.ipynb" :type "notebook" :size 606) :symbol-status success :error-thrown nil :response #s(request-response :status-code 200 :history nil :data (:mimetype nil :writable t :name "Untitled.ipynb" :format "json" :created "2020-03-14T15:26:17.714944Z" :content (:nbformat_minor 4 :cells ((:execution_count nil :cell_type "code" :source "" :outputs nil :metadata (:collapsed :json-false :trusted t))) :nbformat 4 :metadata (:kernelspec (:interrupt_mode "message" :display_name "Clojure (fml-kernel)" :name "fml-kernel" :language "clojure" :env nil :argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :metadata nil) :name "Untitled.ipynb")) :last_modified "2020-03-14T15:26:17.714944Z" :path "Untitled.ipynb" :type "notebook" :size 606) :error-thrown nil :symbol-status success :url "http://127.0.0.1:8889/api/contents/Untitled.ipynb" :done-p nil :settings (:type "GET" :timeout nil :parser ein:json-read :complete #f(compiled-function (&rest args2) #<bytecode 0x51aaf6f5>) :success #f(compiled-function (&rest args2) #<bytecode 0x51aaf715>) :error #f(compiled-function (&rest args2) #<bytecode 0x51aaf735>) :sync nil :headers (("User-Agent" . "Mozilla/5.0") ("X-XSRFTOKEN" . "2|7b02f192|baa0b2eb8a4d3758ac7b3995f0921df4|1584081767")) :encoding binary :url "http://127.0.0.1:8889/api/contents/Untitled.ipynb" :response #1) :-buffer #<killed buffer> :-raw-header "HTTP/1.1 200 OK\nContent-Length: 768\nContent-Security-Policy: frame-ancestors 'self'; report-uri /api/security/csp-report; default-src 'none'\nX-Content-Type-Options: nosniff\nServer: TornadoServer/5.1.1\nLast-Modified: Sat, 14 Mar 2020 15:26:17 GMT\nEtag: \"9d4c293963a14f4e6d37dd5f25bd1e213b7d154d\"\nDate: Sat, 14 Mar 2020 15:36:32 GMT\nContent-Type: application/json\n" :-timer nil :-backend curl :-tempfiles nil))
  apply(#f(compiled-function (&rest args2) #<bytecode 0x51aaf715>) (:data (:mimetype nil :writable t :name "Untitled.ipynb" :format "json" :created "2020-03-14T15:26:17.714944Z" :content (:nbformat_minor 4 :cells ((:execution_count nil :cell_type "code" :source "" :outputs nil :metadata (:collapsed :json-false :trusted t))) :nbformat 4 :metadata (:kernelspec (:interrupt_mode "message" :display_name "Clojure (fml-kernel)" :name "fml-kernel" :language "clojure" :env nil :argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :metadata nil) :name "Untitled.ipynb")) :last_modified "2020-03-14T15:26:17.714944Z" :path "Untitled.ipynb" :type "notebook" :size 606) :symbol-status success :error-thrown nil :response #s(request-response :status-code 200 :history nil :data (:mimetype nil :writable t :name "Untitled.ipynb" :format "json" :created "2020-03-14T15:26:17.714944Z" :content (:nbformat_minor 4 :cells ((:execution_count nil :cell_type "code" :source "" :outputs nil :metadata (:collapsed :json-false :trusted t))) :nbformat 4 :metadata (:kernelspec (:interrupt_mode "message" :display_name "Clojure (fml-kernel)" :name "fml-kernel" :language "clojure" :env nil :argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :metadata nil) :name "Untitled.ipynb")) :last_modified "2020-03-14T15:26:17.714944Z" :path "Untitled.ipynb" :type "notebook" :size 606) :error-thrown nil :symbol-status success :url "http://127.0.0.1:8889/api/contents/Untitled.ipynb" :done-p nil :settings (:type "GET" :timeout nil :parser ein:json-read :complete #f(compiled-function (&rest args2) #<bytecode 0x51aaf6f5>) :success #f(compiled-function (&rest args2) #<bytecode 0x51aaf715>) :error #f(compiled-function (&rest args2) #<bytecode 0x51aaf735>) :sync nil :headers (("User-Agent" . "Mozilla/5.0") ("X-XSRFTOKEN" . "2|7b02f192|baa0b2eb8a4d3758ac7b3995f0921df4|1584081767")) :encoding binary :url "http://127.0.0.1:8889/api/contents/Untitled.ipynb" :response #2) :-buffer #<killed buffer> :-raw-header "HTTP/1.1 200 OK\nContent-Length: 768\nContent-Security-Policy: frame-ancestors 'self'; report-uri /api/security/csp-report; default-src 'none'\nX-Content-Type-Options: nosniff\nServer: TornadoServer/5.1.1\nLast-Modified: Sat, 14 Mar 2020 15:26:17 GMT\nEtag: \"9d4c293963a14f4e6d37dd5f25bd1e213b7d154d\"\nDate: Sat, 14 Mar 2020 15:36:32 GMT\nContent-Type: application/json\n" :-timer nil :-backend curl :-tempfiles nil)))
  apply(apply #f(compiled-function (&rest args2) #<bytecode 0x51aaf715>) (:data (:mimetype nil :writable t :name "Untitled.ipynb" :format "json" :created "2020-03-14T15:26:17.714944Z" :content (:nbformat_minor 4 :cells ((:execution_count nil :cell_type "code" :source "" :outputs nil :metadata (:collapsed :json-false :trusted t))) :nbformat 4 :metadata (:kernelspec (:interrupt_mode "message" :display_name "Clojure (fml-kernel)" :name "fml-kernel" :language "clojure" :env nil :argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :metadata nil) :name "Untitled.ipynb")) :last_modified "2020-03-14T15:26:17.714944Z" :path "Untitled.ipynb" :type "notebook" :size 606) :symbol-status success :error-thrown nil :response #s(request-response :status-code 200 :history nil :data (:mimetype nil :writable t :name "Untitled.ipynb" :format "json" :created "2020-03-14T15:26:17.714944Z" :content (:nbformat_minor 4 :cells ((:execution_count nil :cell_type "code" :source "" :outputs nil :metadata (:collapsed :json-false :trusted t))) :nbformat 4 :metadata (:kernelspec (:interrupt_mode "message" :display_name "Clojure (fml-kernel)" :name "fml-kernel" :language "clojure" :env nil :argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :metadata nil) :name "Untitled.ipynb")) :last_modified "2020-03-14T15:26:17.714944Z" :path "Untitled.ipynb" :type "notebook" :size 606) :error-thrown nil :symbol-status success :url "http://127.0.0.1:8889/api/contents/Untitled.ipynb" :done-p nil :settings (:type "GET" :timeout nil :parser ein:json-read :complete #f(compiled-function (&rest args2) #<bytecode 0x51aaf6f5>) :success #f(compiled-function (&rest args2) #<bytecode 0x51aaf715>) :error #f(compiled-function (&rest args2) #<bytecode 0x51aaf735>) :sync nil :headers (("User-Agent" . "Mozilla/5.0") ("X-XSRFTOKEN" . "2|7b02f192|baa0b2eb8a4d3758ac7b3995f0921df4|1584081767")) :encoding binary :url "http://127.0.0.1:8889/api/contents/Untitled.ipynb" :response #2) :-buffer #<killed buffer> :-raw-header "HTTP/1.1 200 OK\nContent-Length: 768\nContent-Security-Policy: frame-ancestors 'self'; report-uri /api/security/csp-report; default-src 'none'\nX-Content-Type-Options: nosniff\nServer: TornadoServer/5.1.1\nLast-Modified: Sat, 14 Mar 2020 15:26:17 GMT\nEtag: \"9d4c293963a14f4e6d37dd5f25bd1e213b7d154d\"\nDate: Sat, 14 Mar 2020 15:36:32 GMT\nContent-Type: application/json\n" :-timer nil :-backend curl :-tempfiles nil)))
  request--safe-apply(#f(compiled-function (&rest args2) #<bytecode 0x51aaf715>) (:data (:mimetype nil :writable t :name "Untitled.ipynb" :format "json" :created "2020-03-14T15:26:17.714944Z" :content (:nbformat_minor 4 :cells ((:execution_count nil :cell_type "code" :source "" :outputs nil :metadata (:collapsed :json-false :trusted t))) :nbformat 4 :metadata (:kernelspec (:interrupt_mode "message" :display_name "Clojure (fml-kernel)" :name "fml-kernel" :language "clojure" :env nil :argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :metadata nil) :name "Untitled.ipynb")) :last_modified "2020-03-14T15:26:17.714944Z" :path "Untitled.ipynb" :type "notebook" :size 606) :symbol-status success :error-thrown nil :response #s(request-response :status-code 200 :history nil :data (:mimetype nil :writable t :name "Untitled.ipynb" :format "json" :created "2020-03-14T15:26:17.714944Z" :content (:nbformat_minor 4 :cells ((:execution_count nil :cell_type "code" :source "" :outputs nil :metadata (:collapsed :json-false :trusted t))) :nbformat 4 :metadata (:kernelspec (:interrupt_mode "message" :display_name "Clojure (fml-kernel)" :name "fml-kernel" :language "clojure" :env nil :argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :metadata nil) :name "Untitled.ipynb")) :last_modified "2020-03-14T15:26:17.714944Z" :path "Untitled.ipynb" :type "notebook" :size 606) :error-thrown nil :symbol-status success :url "http://127.0.0.1:8889/api/contents/Untitled.ipynb" :done-p nil :settings (:type "GET" :timeout nil :parser ein:json-read :complete #f(compiled-function (&rest args2) #<bytecode 0x51aaf6f5>) :success #f(compiled-function (&rest args2) #<bytecode 0x51aaf715>) :error #f(compiled-function (&rest args2) #<bytecode 0x51aaf735>) :sync nil :headers (("User-Agent" . "Mozilla/5.0") ("X-XSRFTOKEN" . "2|7b02f192|baa0b2eb8a4d3758ac7b3995f0921df4|1584081767")) :encoding binary :url "http://127.0.0.1:8889/api/contents/Untitled.ipynb" :response #2) :-buffer #<killed buffer> :-raw-header "HTTP/1.1 200 OK\nContent-Length: 768\nContent-Security-Policy: frame-ancestors 'self'; report-uri /api/security/csp-report; default-src 'none'\nX-Content-Type-Options: nosniff\nServer: TornadoServer/5.1.1\nLast-Modified: Sat, 14 Mar 2020 15:26:17 GMT\nEtag: \"9d4c293963a14f4e6d37dd5f25bd1e213b7d154d\"\nDate: Sat, 14 Mar 2020 15:36:32 GMT\nContent-Type: application/json\n" :-timer nil :-backend curl :-tempfiles nil)))
  request--callback(#<killed buffer> :type "GET" :timeout nil :parser ein:json-read :complete #f(compiled-function (&rest args2) #<bytecode 0x51aaf6f5>) :success #f(compiled-function (&rest args2) #<bytecode 0x51aaf715>) :error #f(compiled-function (&rest args2) #<bytecode 0x51aaf735>) :sync nil :headers (("User-Agent" . "Mozilla/5.0") ("X-XSRFTOKEN" . "2|7b02f192|baa0b2eb8a4d3758ac7b3995f0921df4|1584081767")) :encoding binary :url "http://127.0.0.1:8889/api/contents/Untitled.ipynb" :response #s(request-response :status-code 200 :history nil :data (:mimetype nil :writable t :name "Untitled.ipynb" :format "json" :created "2020-03-14T15:26:17.714944Z" :content (:nbformat_minor 4 :cells ((:execution_count nil :cell_type "code" :source "" :outputs nil :metadata (:collapsed :json-false :trusted t))) :nbformat 4 :metadata (:kernelspec (:interrupt_mode "message" :display_name "Clojure (fml-kernel)" :name "fml-kernel" :language "clojure" :env nil :argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :metadata nil) :name "Untitled.ipynb")) :last_modified "2020-03-14T15:26:17.714944Z" :path "Untitled.ipynb" :type "notebook" :size 606) :error-thrown nil :symbol-status success :url "http://127.0.0.1:8889/api/contents/Untitled.ipynb" :done-p nil :settings (:type "GET" :timeout nil :parser ein:json-read :complete #f(compiled-function (&rest args2) #<bytecode 0x51aaf6f5>) :success #f(compiled-function (&rest args2) #<bytecode 0x51aaf715>) :error #f(compiled-function (&rest args2) #<bytecode 0x51aaf735>) :sync nil :headers (("User-Agent" . "Mozilla/5.0") ("X-XSRFTOKEN" . "2|7b02f192|baa0b2eb8a4d3758ac7b3995f0921df4|1584081767")) :encoding binary :url "http://127.0.0.1:8889/api/contents/Untitled.ipynb" :response #1) :-buffer #<killed buffer> :-raw-header "HTTP/1.1 200 OK\nContent-Length: 768\nContent-Security-Policy: frame-ancestors 'self'; report-uri /api/security/csp-report; default-src 'none'\nX-Content-Type-Options: nosniff\nServer: TornadoServer/5.1.1\nLast-Modified: Sat, 14 Mar 2020 15:26:17 GMT\nEtag: \"9d4c293963a14f4e6d37dd5f25bd1e213b7d154d\"\nDate: Sat, 14 Mar 2020 15:36:32 GMT\nContent-Type: application/json\n" :-timer nil :-backend curl :-tempfiles nil))
  apply(request--callback #<killed buffer> (:type "GET" :timeout nil :parser ein:json-read :complete #f(compiled-function (&rest args2) #<bytecode 0x51aaf6f5>) :success #f(compiled-function (&rest args2) #<bytecode 0x51aaf715>) :error #f(compiled-function (&rest args2) #<bytecode 0x51aaf735>) :sync nil :headers (("User-Agent" . "Mozilla/5.0") ("X-XSRFTOKEN" . "2|7b02f192|baa0b2eb8a4d3758ac7b3995f0921df4|1584081767")) :encoding binary :url "http://127.0.0.1:8889/api/contents/Untitled.ipynb" :response #s(request-response :status-code 200 :history nil :data (:mimetype nil :writable t :name "Untitled.ipynb" :format "json" :created "2020-03-14T15:26:17.714944Z" :content (:nbformat_minor 4 :cells ((:execution_count nil :cell_type "code" :source "" :outputs nil :metadata (:collapsed :json-false :trusted t))) :nbformat 4 :metadata (:kernelspec (:interrupt_mode "message" :display_name "Clojure (fml-kernel)" :name "fml-kernel" :language "clojure" :env nil :argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :metadata nil) :name "Untitled.ipynb")) :last_modified "2020-03-14T15:26:17.714944Z" :path "Untitled.ipynb" :type "notebook" :size 606) :error-thrown nil :symbol-status success :url "http://127.0.0.1:8889/api/contents/Untitled.ipynb" :done-p nil :settings #1 :-buffer #<killed buffer> :-raw-header "HTTP/1.1 200 OK\nContent-Length: 768\nContent-Security-Policy: frame-ancestors 'self'; report-uri /api/security/csp-report; default-src 'none'\nX-Content-Type-Options: nosniff\nServer: TornadoServer/5.1.1\nLast-Modified: Sat, 14 Mar 2020 15:26:17 GMT\nEtag: \"9d4c293963a14f4e6d37dd5f25bd1e213b7d154d\"\nDate: Sat, 14 Mar 2020 15:36:32 GMT\nContent-Type: application/json\n" :-timer nil :-backend curl :-tempfiles nil)))
  #f(compiled-function (url proc event) #<bytecode 0x46b39815>)("http://127.0.0.1:8889/api/contents/Untitled.ipynb" #<process request curl> "finished\n")
  apply(#f(compiled-function (url proc event) #<bytecode 0x46b39815>) ("http://127.0.0.1:8889/api/contents/Untitled.ipynb" #<process request curl> "finished\n"))
  request--curl-callback("http://127.0.0.1:8889/api/contents/Untitled.ipynb" #<process request curl> "finished\n")
  apply(request--curl-callback ("http://127.0.0.1:8889/api/contents/Untitled.ipynb" #<process request curl> "finished\n"))
  #f(compiled-function (&rest args2) #<bytecode 0x51aaf961>)(#<process request curl> "finished\n")

here is ein:log-all: https://gist.github.com/vxe/f901343361e69a29bf16edd45f437db4 here is *ein server: https://gist.github.com/vxe/5077c6ad13e1b5af48ba44b973feadf1

However a notebook book is indeed created,

I do a M-x customize-variable and set Ein:Jupyter Default Kernel. I open the notebook buffer that is created, its in python mode and looks like this:

image

with Ein Server showing

[D 08:57:51.515 NotebookApp] No kernel specified, using default kernel
[D 08:57:51.541 NotebookApp] Starting kernel: ['/Users/vedwin/wrk/.python.d/py4cl/bin/python3', '-m', 'ipykernel_launcher', '-f', '/Users/vedwin/wrk/Library/Jupyter/runtime/kernel-d72f5cd9-f9bd-4623-970a-984f691d67cb.json']
[D 08:57:51.551 NotebookApp] Connecting to: tcp://127.0.0.1:63156
[D 08:57:51.554 NotebookApp] Connecting to: tcp://127.0.0.1:63153
[I 08:57:51.556 NotebookApp] Kernel started: d72f5cd9-f9bd-4623-970a-984f691d67cb
[D 08:57:51.556 NotebookApp] Kernel args: {'kernel_name': None, 'cwd': '/Users/vedwin/wrk/lab/fml'}
[D 08:57:51.557 NotebookApp] 201 POST /api/sessions (127.0.0.1) 43.03ms
[D 08:57:51.704 NotebookApp] Initializing websocket connection /api/kernels/d72f5cd9-f9bd-4623-970a-984f691d67cb/channels
[D 08:57:51.705 NotebookApp] Requesting kernel info from d72f5cd9-f9bd-4623-970a-984f691d67cb
[D 08:57:51.705 NotebookApp] Connecting to: tcp://127.0.0.1:63152
[D 08:57:52.145 NotebookApp] activity on d72f5cd9-f9bd-4623-970a-984f691d67cb: status (starting)
[D 08:57:52.147 NotebookApp] activity on d72f5cd9-f9bd-4623-970a-984f691d67cb: status (busy)
[D 08:57:52.148 NotebookApp] activity on d72f5cd9-f9bd-4623-970a-984f691d67cb: status (idle)
[D 08:57:52.148 NotebookApp] Received kernel info: {'status': 'ok', 'protocol_version': '5.3', 'implementation': 'ipython', 'implementation_version': '7.10.1', 'language_info': {'name': 'python', 'version': '3.7.0b1', 'mimetype': 'text/x-python', 'codemirror_mode': {'name': 'ipython', 'version': 3}, 'pygments_lexer': 'ipython3', 'nbconvert_exporter': 'python', 'file_extension': '.py'}, 'banner': "Python 3.7.0b1 (v3.7.0b1:9561d7f501, Jan 30 2018, 19:10:11) \nType 'copyright', 'credits' or 'license' for more information\nIPython 7.10.1 -- An enhanced Interactive Python. Type '?' for help.\n", 'help_links': [{'text': 'Python Reference', 'url': 'https://docs.python.org/3.7'}, {'text': 'IPython Reference', 'url': 'https://ipython.org/documentation.html'}, {'text': 'NumPy Reference', 'url': 'https://docs.scipy.org/doc/numpy/reference/'}, {'text': 'SciPy Reference', 'url': 'https://docs.scipy.org/doc/scipy/reference/'}, {'text': 'Matplotlib Reference', 'url': 'https://matplotlib.org/contents.html'}, {'text': 'SymPy Reference', 'url': 'http://docs.sympy.org/latest/index.html'}, {'text': 'pandas Reference', 'url': 'https://pandas.pydata.org/pandas-docs/stable/'}]}
[D 08:57:52.243 NotebookApp] 101 GET /api/kernels/d72f5cd9-f9bd-4623-970a-984f691d67cb/channels?session_id=3dd91844-4bb3-40e5-8a3b-9a4c2d41486a (127.0.0.1) 539.94ms
[D 08:57:52.244 NotebookApp] Opening websocket /api/kernels/d72f5cd9-f9bd-4623-970a-984f691d67cb/channels
[D 08:57:52.244 NotebookApp] Getting buffer for d72f5cd9-f9bd-4623-970a-984f691d67cb
[D 08:57:52.244 NotebookApp] Connecting to: tcp://127.0.0.1:63152
[D 08:57:52.245 NotebookApp] Connecting to: tcp://127.0.0.1:63156
[D 08:57:52.245 NotebookApp] Connecting to: tcp://127.0.0.1:63153
[D 08:57:52.245 NotebookApp] Connecting to: tcp://127.0.0.1:63154
[D 08:57:52.309 NotebookApp] 200 GET /api/contents (127.0.0.1) 5.99ms
[D 08:57:52.439 NotebookApp] 200 GET /api/sessions (127.0.0.1) 0.80ms

I click the unknown kernel message and select my clojure kernel again:

image

I get the elisp debugger stating notebook instantiation failed

Debugger entered--Lisp error: (error "ein:notebook-open--callback: notebook instantiation failed")
  signal(error ("ein:notebook-open--callback: notebook instantiation failed"))
  error("ein:notebook-open--callback: notebook instantiation failed")
  ein:notebook-open--callback(#s(ein:$notebook :url-or-port "http://127.0.0.1:8888" :notebook-id nil :notebook-path "Untitled.ipynb" :kernel #s(ein:$kernel :url-or-port "http://127.0.0.1:8888" :path "Untitled.ipynb" :kernelspec #s(ein:$kernelspec :name "fml-kernel" :display-name "Clojure (fml-kernel)" :resources (:logo-64x64 "/kernelspecs/fml-kernel/logo-64x64.png") :spec (:argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :env nil :display_name "Clojure (fml-kernel)" :language "clojure" :interrupt_mode "message" :metadata nil :name "fml-kernel") :language "clojure") :events #<ein:events ein:events> :api-version 6 :session-id "497bbe29-cca3-418d-9370-e9fcb6255059" :kernel-id nil :shell-channel nil :iopub-channel nil :websocket nil :base-url "/api/kernels" :kernel-url nil :ws-url nil :stdin-activep nil :username "username" :msg-callbacks #<hash-table equal 0/65 0x45c2681d> :oinfo-cache #<hash-table equal 0/65 0x45c267fd> :after-start-hook nil :after-execute-hook nil) :kernelinfo nil :kernelspec #s(ein:$kernelspec :name "fml-kernel" :display-name "Clojure (fml-kernel)" :resources (:logo-64x64 "/kernelspecs/fml-kernel/logo-64x64.png") :spec (:argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :env nil :display_name "Clojure (fml-kernel)" :language "clojure" :interrupt_mode "message" :metadata nil :name "fml-kernel") :language "clojure") :pager "*ein:pager http://127.0.0.1:8888/Untitled.ipynb*" :dirty nil :metadata (:kernelspec (:argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :display_name "Clojure (fml-kernel)" :env nil :interrupt_mode "message" :language "clojure" :metadata nil :name "fml-kernel") :name "Untitled.ipynb") :notebook-name "Untitled.ipynb" :nbformat 4 :nbformat-minor 2 :events #<ein:events ein:events> :worksheets (#<ein:worksheet ein:worksheet>) :scratchsheets nil :api-version 6) #f(compiled-function (&rest args2) #<bytecode 0x46fcc315>) #s(ein:$content :url-or-port "http://127.0.0.1:8888" :notebook-version 6 :name "Untitled.ipynb" :path "Untitled.ipynb" :type "notebook" :writable t :created "2020-03-14T16:00:46.632793Z" :last-modified "2020-03-14T16:00:46.632793Z" :mimetype nil :raw-content (:cells ((:cell_type "code" :execution_count nil :metadata (:collapsed :json-false :trusted t) :outputs nil :source "")) :metadata (:kernelspec (:argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :display_name "Clojure (fml-kernel)" :env nil :interrupt_mode "message" :language "clojure" :metadata nil :name "fml-kernel") :name "Untitled.ipynb") :nbformat 4 :nbformat_minor 2) :format "json" :session-p nil))
  apply(ein:notebook-open--callback (#s(ein:$notebook :url-or-port "http://127.0.0.1:8888" :notebook-id nil :notebook-path "Untitled.ipynb" :kernel #s(ein:$kernel :url-or-port "http://127.0.0.1:8888" :path "Untitled.ipynb" :kernelspec #s(ein:$kernelspec :name "fml-kernel" :display-name "Clojure (fml-kernel)" :resources (:logo-64x64 "/kernelspecs/fml-kernel/logo-64x64.png") :spec (:argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :env nil :display_name "Clojure (fml-kernel)" :language "clojure" :interrupt_mode "message" :metadata nil :name "fml-kernel") :language "clojure") :events #<ein:events ein:events> :api-version 6 :session-id "497bbe29-cca3-418d-9370-e9fcb6255059" :kernel-id nil :shell-channel nil :iopub-channel nil :websocket nil :base-url "/api/kernels" :kernel-url nil :ws-url nil :stdin-activep nil :username "username" :msg-callbacks #<hash-table equal 0/65 0x45c2681d> :oinfo-cache #<hash-table equal 0/65 0x45c267fd> :after-start-hook nil :after-execute-hook nil) :kernelinfo nil :kernelspec #s(ein:$kernelspec :name "fml-kernel" :display-name "Clojure (fml-kernel)" :resources (:logo-64x64 "/kernelspecs/fml-kernel/logo-64x64.png") :spec (:argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :env nil :display_name "Clojure (fml-kernel)" :language "clojure" :interrupt_mode "message" :metadata nil :name "fml-kernel") :language "clojure") :pager "*ein:pager http://127.0.0.1:8888/Untitled.ipynb*" :dirty nil :metadata (:kernelspec (:argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :display_name "Clojure (fml-kernel)" :env nil :interrupt_mode "message" :language "clojure" :metadata nil :name "fml-kernel") :name "Untitled.ipynb") :notebook-name "Untitled.ipynb" :nbformat 4 :nbformat-minor 2 :events #<ein:events ein:events> :worksheets (#<ein:worksheet ein:worksheet>) :scratchsheets nil :api-version 6) #f(compiled-function (&rest args2) #<bytecode 0x46fcc315>) #s(ein:$content :url-or-port "http://127.0.0.1:8888" :notebook-version 6 :name "Untitled.ipynb" :path "Untitled.ipynb" :type "notebook" :writable t :created "2020-03-14T16:00:46.632793Z" :last-modified "2020-03-14T16:00:46.632793Z" :mimetype nil :raw-content (:cells ((:cell_type "code" :execution_count nil :metadata (:collapsed :json-false :trusted t) :outputs nil :source "")) :metadata (:kernelspec (:argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :display_name "Clojure (fml-kernel)" :env nil :interrupt_mode "message" :language "clojure" :metadata nil :name "fml-kernel") :name "Untitled.ipynb") :nbformat 4 :nbformat_minor 2) :format "json" :session-p nil)))
  #f(compiled-function (&rest args2) #<bytecode 0x46fcc351>)(#s(ein:$content :url-or-port "http://127.0.0.1:8888" :notebook-version 6 :name "Untitled.ipynb" :path "Untitled.ipynb" :type "notebook" :writable t :created "2020-03-14T16:00:46.632793Z" :last-modified "2020-03-14T16:00:46.632793Z" :mimetype nil :raw-content (:cells ((:cell_type "code" :execution_count nil :metadata (:collapsed :json-false :trusted t) :outputs nil :source "")) :metadata (:kernelspec (:argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :display_name "Clojure (fml-kernel)" :env nil :interrupt_mode "message" :language "clojure" :metadata nil :name "fml-kernel") :name "Untitled.ipynb") :nbformat 4 :nbformat_minor 2) :format "json" :session-p nil))
  ein:content-query-contents--success("http://127.0.0.1:8888" "Untitled.ipynb" #f(compiled-function (&rest args2) #<bytecode 0x46fcc351>) :data (:name "Untitled.ipynb" :path "Untitled.ipynb" :last_modified "2020-03-14T16:00:46.632793Z" :created "2020-03-14T16:00:46.632793Z" :content (:cells ((:cell_type "code" :execution_count nil :metadata (:collapsed :json-false :trusted t) :outputs nil :source "")) :metadata (:kernelspec (:argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :display_name "Clojure (fml-kernel)" :env nil :interrupt_mode "message" :language "clojure" :metadata nil :name "fml-kernel") :name "Untitled.ipynb") :nbformat 4 :nbformat_minor 2) :format "json" :mimetype nil :size 606 :writable t :type "notebook") :symbol-status success :error-thrown nil :response #s(request-response :status-code 200 :history nil :data (:name "Untitled.ipynb" :path "Untitled.ipynb" :last_modified "2020-03-14T16:00:46.632793Z" :created "2020-03-14T16:00:46.632793Z" :content (:cells ((:cell_type "code" :execution_count nil :metadata (:collapsed :json-false :trusted t) :outputs nil :source "")) :metadata (:kernelspec (:argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :display_name "Clojure (fml-kernel)" :env nil :interrupt_mode "message" :language "clojure" :metadata nil :name "fml-kernel") :name "Untitled.ipynb") :nbformat 4 :nbformat_minor 2) :format "json" :mimetype nil :size 606 :writable t :type "notebook") :error-thrown nil :symbol-status success :url "http://127.0.0.1:8888/api/contents/Untitled.ipynb" :done-p nil :settings (:type "GET" :timeout nil :parser ein:json-read :complete #f(compiled-function (&rest args2) #<bytecode 0x46fce385>) :success #f(compiled-function (&rest args2) #<bytecode 0x46fce3a5>) :error #f(compiled-function (&rest args2) #<bytecode 0x46fce3c5>) :sync nil :headers (("User-Agent" . "Mozilla/5.0") ("X-XSRFTOKEN" . "2|7b02f192|baa0b2eb8a4d3758ac7b3995f0921df4|1584081767")) :encoding binary :url "http://127.0.0.1:8888/api/contents/Untitled.ipynb" :response #1) :-buffer #<killed buffer> :-raw-header "HTTP/1.1 200 OK\nServer: TornadoServer/6.0.4\nContent-Type: application/json\nDate: Sat, 14 Mar 2020 16:00:48 GMT\nX-Content-Type-Options: nosniff\nContent-Security-Policy: frame-ancestors 'self'; report-uri /api/security/csp-report; default-src 'none'\nLast-Modified: Sat, 14 Mar 2020 16:00:46 GMT\nEtag: \"5900c99213c071178ed67ac279d7ca8ed97cf871\"\nContent-Length: 768\n" :-timer nil :-backend curl :-tempfiles nil))
  apply(ein:content-query-contents--success ("http://127.0.0.1:8888" "Untitled.ipynb" #f(compiled-function (&rest args2) #<bytecode 0x46fcc351>) :data (:name "Untitled.ipynb" :path "Untitled.ipynb" :last_modified "2020-03-14T16:00:46.632793Z" :created "2020-03-14T16:00:46.632793Z" :content (:cells ((:cell_type "code" :execution_count nil :metadata (:collapsed :json-false :trusted t) :outputs nil :source "")) :metadata (:kernelspec (:argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :display_name "Clojure (fml-kernel)" :env nil :interrupt_mode "message" :language "clojure" :metadata nil :name "fml-kernel") :name "Untitled.ipynb") :nbformat 4 :nbformat_minor 2) :format "json" :mimetype nil :size 606 :writable t :type "notebook") :symbol-status success :error-thrown nil :response #s(request-response :status-code 200 :history nil :data (:name "Untitled.ipynb" :path "Untitled.ipynb" :last_modified "2020-03-14T16:00:46.632793Z" :created "2020-03-14T16:00:46.632793Z" :content (:cells ((:cell_type "code" :execution_count nil :metadata (:collapsed :json-false :trusted t) :outputs nil :source "")) :metadata (:kernelspec (:argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :display_name "Clojure (fml-kernel)" :env nil :interrupt_mode "message" :language "clojure" :metadata nil :name "fml-kernel") :name "Untitled.ipynb") :nbformat 4 :nbformat_minor 2) :format "json" :mimetype nil :size 606 :writable t :type "notebook") :error-thrown nil :symbol-status success :url "http://127.0.0.1:8888/api/contents/Untitled.ipynb" :done-p nil :settings (:type "GET" :timeout nil :parser ein:json-read :complete #f(compiled-function (&rest args2) #<bytecode 0x46fce385>) :success #f(compiled-function (&rest args2) #<bytecode 0x46fce3a5>) :error #f(compiled-function (&rest args2) #<bytecode 0x46fce3c5>) :sync nil :headers (("User-Agent" . "Mozilla/5.0") ("X-XSRFTOKEN" . "2|7b02f192|baa0b2eb8a4d3758ac7b3995f0921df4|1584081767")) :encoding binary :url "http://127.0.0.1:8888/api/contents/Untitled.ipynb" :response #2) :-buffer #<killed buffer> :-raw-header "HTTP/1.1 200 OK\nServer: TornadoServer/6.0.4\nContent-Type: application/json\nDate: Sat, 14 Mar 2020 16:00:48 GMT\nX-Content-Type-Options: nosniff\nContent-Security-Policy: frame-ancestors 'self'; report-uri /api/security/csp-report; default-src 'none'\nLast-Modified: Sat, 14 Mar 2020 16:00:46 GMT\nEtag: \"5900c99213c071178ed67ac279d7ca8ed97cf871\"\nContent-Length: 768\n" :-timer nil :-backend curl :-tempfiles nil)))
  #f(compiled-function (&rest args2) #<bytecode 0x46fce3a5>)(:data (:name "Untitled.ipynb" :path "Untitled.ipynb" :last_modified "2020-03-14T16:00:46.632793Z" :created "2020-03-14T16:00:46.632793Z" :content (:cells ((:cell_type "code" :execution_count nil :metadata (:collapsed :json-false :trusted t) :outputs nil :source "")) :metadata (:kernelspec (:argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :display_name "Clojure (fml-kernel)" :env nil :interrupt_mode "message" :language "clojure" :metadata nil :name "fml-kernel") :name "Untitled.ipynb") :nbformat 4 :nbformat_minor 2) :format "json" :mimetype nil :size 606 :writable t :type "notebook") :symbol-status success :error-thrown nil :response #s(request-response :status-code 200 :history nil :data (:name "Untitled.ipynb" :path "Untitled.ipynb" :last_modified "2020-03-14T16:00:46.632793Z" :created "2020-03-14T16:00:46.632793Z" :content (:cells ((:cell_type "code" :execution_count nil :metadata (:collapsed :json-false :trusted t) :outputs nil :source "")) :metadata (:kernelspec (:argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :display_name "Clojure (fml-kernel)" :env nil :interrupt_mode "message" :language "clojure" :metadata nil :name "fml-kernel") :name "Untitled.ipynb") :nbformat 4 :nbformat_minor 2) :format "json" :mimetype nil :size 606 :writable t :type "notebook") :error-thrown nil :symbol-status success :url "http://127.0.0.1:8888/api/contents/Untitled.ipynb" :done-p nil :settings (:type "GET" :timeout nil :parser ein:json-read :complete #f(compiled-function (&rest args2) #<bytecode 0x46fce385>) :success #f(compiled-function (&rest args2) #<bytecode 0x46fce3a5>) :error #f(compiled-function (&rest args2) #<bytecode 0x46fce3c5>) :sync nil :headers (("User-Agent" . "Mozilla/5.0") ("X-XSRFTOKEN" . "2|7b02f192|baa0b2eb8a4d3758ac7b3995f0921df4|1584081767")) :encoding binary :url "http://127.0.0.1:8888/api/contents/Untitled.ipynb" :response #1) :-buffer #<killed buffer> :-raw-header "HTTP/1.1 200 OK\nServer: TornadoServer/6.0.4\nContent-Type: application/json\nDate: Sat, 14 Mar 2020 16:00:48 GMT\nX-Content-Type-Options: nosniff\nContent-Security-Policy: frame-ancestors 'self'; report-uri /api/security/csp-report; default-src 'none'\nLast-Modified: Sat, 14 Mar 2020 16:00:46 GMT\nEtag: \"5900c99213c071178ed67ac279d7ca8ed97cf871\"\nContent-Length: 768\n" :-timer nil :-backend curl :-tempfiles nil))
  apply(#f(compiled-function (&rest args2) #<bytecode 0x46fce3a5>) (:data (:name "Untitled.ipynb" :path "Untitled.ipynb" :last_modified "2020-03-14T16:00:46.632793Z" :created "2020-03-14T16:00:46.632793Z" :content (:cells ((:cell_type "code" :execution_count nil :metadata (:collapsed :json-false :trusted t) :outputs nil :source "")) :metadata (:kernelspec (:argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :display_name "Clojure (fml-kernel)" :env nil :interrupt_mode "message" :language "clojure" :metadata nil :name "fml-kernel") :name "Untitled.ipynb") :nbformat 4 :nbformat_minor 2) :format "json" :mimetype nil :size 606 :writable t :type "notebook") :symbol-status success :error-thrown nil :response #s(request-response :status-code 200 :history nil :data (:name "Untitled.ipynb" :path "Untitled.ipynb" :last_modified "2020-03-14T16:00:46.632793Z" :created "2020-03-14T16:00:46.632793Z" :content (:cells ((:cell_type "code" :execution_count nil :metadata (:collapsed :json-false :trusted t) :outputs nil :source "")) :metadata (:kernelspec (:argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :display_name "Clojure (fml-kernel)" :env nil :interrupt_mode "message" :language "clojure" :metadata nil :name "fml-kernel") :name "Untitled.ipynb") :nbformat 4 :nbformat_minor 2) :format "json" :mimetype nil :size 606 :writable t :type "notebook") :error-thrown nil :symbol-status success :url "http://127.0.0.1:8888/api/contents/Untitled.ipynb" :done-p nil :settings (:type "GET" :timeout nil :parser ein:json-read :complete #f(compiled-function (&rest args2) #<bytecode 0x46fce385>) :success #f(compiled-function (&rest args2) #<bytecode 0x46fce3a5>) :error #f(compiled-function (&rest args2) #<bytecode 0x46fce3c5>) :sync nil :headers (("User-Agent" . "Mozilla/5.0") ("X-XSRFTOKEN" . "2|7b02f192|baa0b2eb8a4d3758ac7b3995f0921df4|1584081767")) :encoding binary :url "http://127.0.0.1:8888/api/contents/Untitled.ipynb" :response #2) :-buffer #<killed buffer> :-raw-header "HTTP/1.1 200 OK\nServer: TornadoServer/6.0.4\nContent-Type: application/json\nDate: Sat, 14 Mar 2020 16:00:48 GMT\nX-Content-Type-Options: nosniff\nContent-Security-Policy: frame-ancestors 'self'; report-uri /api/security/csp-report; default-src 'none'\nLast-Modified: Sat, 14 Mar 2020 16:00:46 GMT\nEtag: \"5900c99213c071178ed67ac279d7ca8ed97cf871\"\nContent-Length: 768\n" :-timer nil :-backend curl :-tempfiles nil)))
  apply(apply #f(compiled-function (&rest args2) #<bytecode 0x46fce3a5>) (:data (:name "Untitled.ipynb" :path "Untitled.ipynb" :last_modified "2020-03-14T16:00:46.632793Z" :created "2020-03-14T16:00:46.632793Z" :content (:cells ((:cell_type "code" :execution_count nil :metadata (:collapsed :json-false :trusted t) :outputs nil :source "")) :metadata (:kernelspec (:argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :display_name "Clojure (fml-kernel)" :env nil :interrupt_mode "message" :language "clojure" :metadata nil :name "fml-kernel") :name "Untitled.ipynb") :nbformat 4 :nbformat_minor 2) :format "json" :mimetype nil :size 606 :writable t :type "notebook") :symbol-status success :error-thrown nil :response #s(request-response :status-code 200 :history nil :data (:name "Untitled.ipynb" :path "Untitled.ipynb" :last_modified "2020-03-14T16:00:46.632793Z" :created "2020-03-14T16:00:46.632793Z" :content (:cells ((:cell_type "code" :execution_count nil :metadata (:collapsed :json-false :trusted t) :outputs nil :source "")) :metadata (:kernelspec (:argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :display_name "Clojure (fml-kernel)" :env nil :interrupt_mode "message" :language "clojure" :metadata nil :name "fml-kernel") :name "Untitled.ipynb") :nbformat 4 :nbformat_minor 2) :format "json" :mimetype nil :size 606 :writable t :type "notebook") :error-thrown nil :symbol-status success :url "http://127.0.0.1:8888/api/contents/Untitled.ipynb" :done-p nil :settings (:type "GET" :timeout nil :parser ein:json-read :complete #f(compiled-function (&rest args2) #<bytecode 0x46fce385>) :success #f(compiled-function (&rest args2) #<bytecode 0x46fce3a5>) :error #f(compiled-function (&rest args2) #<bytecode 0x46fce3c5>) :sync nil :headers (("User-Agent" . "Mozilla/5.0") ("X-XSRFTOKEN" . "2|7b02f192|baa0b2eb8a4d3758ac7b3995f0921df4|1584081767")) :encoding binary :url "http://127.0.0.1:8888/api/contents/Untitled.ipynb" :response #2) :-buffer #<killed buffer> :-raw-header "HTTP/1.1 200 OK\nServer: TornadoServer/6.0.4\nContent-Type: application/json\nDate: Sat, 14 Mar 2020 16:00:48 GMT\nX-Content-Type-Options: nosniff\nContent-Security-Policy: frame-ancestors 'self'; report-uri /api/security/csp-report; default-src 'none'\nLast-Modified: Sat, 14 Mar 2020 16:00:46 GMT\nEtag: \"5900c99213c071178ed67ac279d7ca8ed97cf871\"\nContent-Length: 768\n" :-timer nil :-backend curl :-tempfiles nil)))
  request--safe-apply(#f(compiled-function (&rest args2) #<bytecode 0x46fce3a5>) (:data (:name "Untitled.ipynb" :path "Untitled.ipynb" :last_modified "2020-03-14T16:00:46.632793Z" :created "2020-03-14T16:00:46.632793Z" :content (:cells ((:cell_type "code" :execution_count nil :metadata (:collapsed :json-false :trusted t) :outputs nil :source "")) :metadata (:kernelspec (:argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :display_name "Clojure (fml-kernel)" :env nil :interrupt_mode "message" :language "clojure" :metadata nil :name "fml-kernel") :name "Untitled.ipynb") :nbformat 4 :nbformat_minor 2) :format "json" :mimetype nil :size 606 :writable t :type "notebook") :symbol-status success :error-thrown nil :response #s(request-response :status-code 200 :history nil :data (:name "Untitled.ipynb" :path "Untitled.ipynb" :last_modified "2020-03-14T16:00:46.632793Z" :created "2020-03-14T16:00:46.632793Z" :content (:cells ((:cell_type "code" :execution_count nil :metadata (:collapsed :json-false :trusted t) :outputs nil :source "")) :metadata (:kernelspec (:argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :display_name "Clojure (fml-kernel)" :env nil :interrupt_mode "message" :language "clojure" :metadata nil :name "fml-kernel") :name "Untitled.ipynb") :nbformat 4 :nbformat_minor 2) :format "json" :mimetype nil :size 606 :writable t :type "notebook") :error-thrown nil :symbol-status success :url "http://127.0.0.1:8888/api/contents/Untitled.ipynb" :done-p nil :settings (:type "GET" :timeout nil :parser ein:json-read :complete #f(compiled-function (&rest args2) #<bytecode 0x46fce385>) :success #f(compiled-function (&rest args2) #<bytecode 0x46fce3a5>) :error #f(compiled-function (&rest args2) #<bytecode 0x46fce3c5>) :sync nil :headers (("User-Agent" . "Mozilla/5.0") ("X-XSRFTOKEN" . "2|7b02f192|baa0b2eb8a4d3758ac7b3995f0921df4|1584081767")) :encoding binary :url "http://127.0.0.1:8888/api/contents/Untitled.ipynb" :response #2) :-buffer #<killed buffer> :-raw-header "HTTP/1.1 200 OK\nServer: TornadoServer/6.0.4\nContent-Type: application/json\nDate: Sat, 14 Mar 2020 16:00:48 GMT\nX-Content-Type-Options: nosniff\nContent-Security-Policy: frame-ancestors 'self'; report-uri /api/security/csp-report; default-src 'none'\nLast-Modified: Sat, 14 Mar 2020 16:00:46 GMT\nEtag: \"5900c99213c071178ed67ac279d7ca8ed97cf871\"\nContent-Length: 768\n" :-timer nil :-backend curl :-tempfiles nil)))
  request--callback(#<killed buffer> :type "GET" :timeout nil :parser ein:json-read :complete #f(compiled-function (&rest args2) #<bytecode 0x46fce385>) :success #f(compiled-function (&rest args2) #<bytecode 0x46fce3a5>) :error #f(compiled-function (&rest args2) #<bytecode 0x46fce3c5>) :sync nil :headers (("User-Agent" . "Mozilla/5.0") ("X-XSRFTOKEN" . "2|7b02f192|baa0b2eb8a4d3758ac7b3995f0921df4|1584081767")) :encoding binary :url "http://127.0.0.1:8888/api/contents/Untitled.ipynb" :response #s(request-response :status-code 200 :history nil :data (:name "Untitled.ipynb" :path "Untitled.ipynb" :last_modified "2020-03-14T16:00:46.632793Z" :created "2020-03-14T16:00:46.632793Z" :content (:cells ((:cell_type "code" :execution_count nil :metadata (:collapsed :json-false :trusted t) :outputs nil :source "")) :metadata (:kernelspec (:argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :display_name "Clojure (fml-kernel)" :env nil :interrupt_mode "message" :language "clojure" :metadata nil :name "fml-kernel") :name "Untitled.ipynb") :nbformat 4 :nbformat_minor 2) :format "json" :mimetype nil :size 606 :writable t :type "notebook") :error-thrown nil :symbol-status success :url "http://127.0.0.1:8888/api/contents/Untitled.ipynb" :done-p nil :settings (:type "GET" :timeout nil :parser ein:json-read :complete #f(compiled-function (&rest args2) #<bytecode 0x46fce385>) :success #f(compiled-function (&rest args2) #<bytecode 0x46fce3a5>) :error #f(compiled-function (&rest args2) #<bytecode 0x46fce3c5>) :sync nil :headers (("User-Agent" . "Mozilla/5.0") ("X-XSRFTOKEN" . "2|7b02f192|baa0b2eb8a4d3758ac7b3995f0921df4|1584081767")) :encoding binary :url "http://127.0.0.1:8888/api/contents/Untitled.ipynb" :response #1) :-buffer #<killed buffer> :-raw-header "HTTP/1.1 200 OK\nServer: TornadoServer/6.0.4\nContent-Type: application/json\nDate: Sat, 14 Mar 2020 16:00:48 GMT\nX-Content-Type-Options: nosniff\nContent-Security-Policy: frame-ancestors 'self'; report-uri /api/security/csp-report; default-src 'none'\nLast-Modified: Sat, 14 Mar 2020 16:00:46 GMT\nEtag: \"5900c99213c071178ed67ac279d7ca8ed97cf871\"\nContent-Length: 768\n" :-timer nil :-backend curl :-tempfiles nil))
  apply(request--callback #<killed buffer> (:type "GET" :timeout nil :parser ein:json-read :complete #f(compiled-function (&rest args2) #<bytecode 0x46fce385>) :success #f(compiled-function (&rest args2) #<bytecode 0x46fce3a5>) :error #f(compiled-function (&rest args2) #<bytecode 0x46fce3c5>) :sync nil :headers (("User-Agent" . "Mozilla/5.0") ("X-XSRFTOKEN" . "2|7b02f192|baa0b2eb8a4d3758ac7b3995f0921df4|1584081767")) :encoding binary :url "http://127.0.0.1:8888/api/contents/Untitled.ipynb" :response #s(request-response :status-code 200 :history nil :data (:name "Untitled.ipynb" :path "Untitled.ipynb" :last_modified "2020-03-14T16:00:46.632793Z" :created "2020-03-14T16:00:46.632793Z" :content (:cells ((:cell_type "code" :execution_count nil :metadata (:collapsed :json-false :trusted t) :outputs nil :source "")) :metadata (:kernelspec (:argv ("java" "-cp" "/Users/vedwin/Library/Jupyter/kernels/fml-kernel/clojupyter-standalone.jar" "clojupyter.kernel.core" "{connection_file}") :display_name "Clojure (fml-kernel)" :env nil :interrupt_mode "message" :language "clojure" :metadata nil :name "fml-kernel") :name "Untitled.ipynb") :nbformat 4 :nbformat_minor 2) :format "json" :mimetype nil :size 606 :writable t :type "notebook") :error-thrown nil :symbol-status success :url "http://127.0.0.1:8888/api/contents/Untitled.ipynb" :done-p nil :settings #1 :-buffer #<killed buffer> :-raw-header "HTTP/1.1 200 OK\nServer: TornadoServer/6.0.4\nContent-Type: application/json\nDate: Sat, 14 Mar 2020 16:00:48 GMT\nX-Content-Type-Options: nosniff\nContent-Security-Policy: frame-ancestors 'self'; report-uri /api/security/csp-report; default-src 'none'\nLast-Modified: Sat, 14 Mar 2020 16:00:46 GMT\nEtag: \"5900c99213c071178ed67ac279d7ca8ed97cf871\"\nContent-Length: 768\n" :-timer nil :-backend curl :-tempfiles nil)))
  #f(compiled-function (url proc event) #<bytecode 0x41268ec9>)("http://127.0.0.1:8888/api/contents/Untitled.ipynb" #<process request curl<1>> "finished\n")
  apply(#f(compiled-function (url proc event) #<bytecode 0x41268ec9>) ("http://127.0.0.1:8888/api/contents/Untitled.ipynb" #<process request curl<1>> "finished\n"))
  request--curl-callback("http://127.0.0.1:8888/api/contents/Untitled.ipynb" #<process request curl<1>> "finished\n")
  apply(request--curl-callback ("http://127.0.0.1:8888/api/contents/Untitled.ipynb" #<process request curl<1>> "finished\n"))
  #f(compiled-function (&rest args2) #<bytecode 0x48cec571>)(#<process request curl<1>> "finished\n")

and what looks like a giving up attempt in Ein Server

[D 08:57:52.243 NotebookApp] 101 GET /api/kernels/d72f5cd9-f9bd-4623-970a-984f691d67cb/channels?session_id=3dd91844-4bb3-40e5-8a3b-9a4c2d41486a (127.0.0.1) 539.94ms
[D 08:57:52.244 NotebookApp] Opening websocket /api/kernels/d72f5cd9-f9bd-4623-970a-984f691d67cb/channels
[D 08:57:52.244 NotebookApp] Getting buffer for d72f5cd9-f9bd-4623-970a-984f691d67cb
[D 08:57:52.244 NotebookApp] Connecting to: tcp://127.0.0.1:63152
[D 08:57:52.245 NotebookApp] Connecting to: tcp://127.0.0.1:63156
[D 08:57:52.245 NotebookApp] Connecting to: tcp://127.0.0.1:63153
[D 08:57:52.245 NotebookApp] Connecting to: tcp://127.0.0.1:63154
[D 08:57:52.309 NotebookApp] 200 GET /api/contents (127.0.0.1) 5.99ms
[D 08:57:52.439 NotebookApp] 200 GET /api/sessions (127.0.0.1) 0.80ms
[I 09:00:46.625 NotebookApp] Saving file at /Untitled.ipynb
[D 09:00:46.625 NotebookApp] Saving /Users/vedwin/wrk/lab/fml/Untitled.ipynb
[D 09:00:46.634 NotebookApp] 200 PUT /api/contents/Untitled.ipynb (127.0.0.1) 10.30ms
[D 09:00:46.681 NotebookApp] Clearing buffer for d72f5cd9-f9bd-4623-970a-984f691d67cb
[I 09:00:46.682 NotebookApp] Kernel shutdown: d72f5cd9-f9bd-4623-970a-984f691d67cb
[D 09:00:47.003 NotebookApp] 204 DELETE /api/sessions/3dd91844-4bb3-40e5-8a3b-9a4c2d41486a (127.0.0.1) 322.75ms
[D 09:00:47.013 NotebookApp] Websocket closed d72f5cd9-f9bd-4623-970a-984f691d67cb:3dd91844-4bb3-40e5-8a3b-9a4c2d41486a
[D 09:00:48.027 NotebookApp] 200 GET /api/contents (127.0.0.1) 11.62ms
[D 09:00:48.031 NotebookApp] 200 GET /api/contents/Untitled.ipynb (127.0.0.1) 14.53ms
[D 09:01:13.166 NotebookApp] 200 GET /api/sessions (127.0.0.1) 0.72ms
vxe commented 4 years ago

The contents of the Untitled notebook created by New Notebook is here:

https://gist.github.com/vxe/3923e5ae93e0d23b3b1f8e1adb97c941

Please let me know if I can provide any additional information to try and troubleshoot further

dickmao commented 4 years ago

It looks like you're running two servers, 8888 and 8889, so all the 8888 output seems irrelevant.

It looks like 8889 is giving you Forbidden, so that's a showstopper. Try using the classic jupyter browser interface.

Here's what my EIN looks like: Screenshot_2020-03-14_14-07-23

Not for nothing, but clojupyter seems like a far less mature REPL to lein repl in https://github.com/clojure-emacs/cider. I suppose getting clojupyter to work in EIN is a valid source of amusement.

vxe commented 4 years ago

Mainly just want the ui for tweaking notebooks. I'm using a custom kernel: https://github.com/clojupyter/clojupyter/blob/master/doc/usage-scenarios.md

so maybe that an issue, as a sanity check did you install like this : https://github.com/clojupyter/clojupyter/blob/master/doc/library.md or use conda to install clojupyter?

here are my full server and request logs, launching with ein:run, using the above steps

server: https://gist.github.com/vxe/0a7861b7263d75707dbbe3707773f107 request: https://gist.github.com/vxe/449c70a5c31c3c707ec3ce1fea185aad

(emacs "notebook instantiation failed" message is same as above)

additionally on subsequent open attempts I'm seeing the below:

image
dickmao commented 4 years ago

My hard drive is at capacity, and conda is too big, not to mention redundant with pip.

I used https://github.com/clojupyter/clojupyter/blob/master/doc/docker.md and then ein:login to 8888.

When things get so discombobulated due to two servers, you need to start over with one. Your latest diagnostics suggest you merely killed 8889 and are trying to make it work with the same 8888 and the same emacs. EIN is in an irrecoverable state of confusion -- you need to start over.

vxe commented 4 years ago

the docker version is useless as it doesn’t persist notebooks

dickmao commented 4 years ago

No argument there. I only used it to confirm EIN's functional, if not airtight, integration with clojupyter.

vxe commented 4 years ago

If it works with this:

https://github.com/clojupyter/clojupyter/blob/master/doc/library.md

i’d agree with your assessment . No conda required

dickmao commented 4 years ago

Sorry, I'm not going to do that. Too many words. Docker lets me get in and get out quick (I've already deleted the image).

If you can't make it happen, I reassert CIDER as a manifestly less frustrating approach for an emacs clojure repl.

vxe commented 4 years ago

Didn't ask for a recommendation, but don't worry about it. Words are hard

millejoh commented 4 years ago

@vxe - interestingly enough I can get clojupyter to work if I do not have clojure-mode installed in emacs. Another workaround that is working is calling (add-to-list 'polymode-mode-name-aliases '(clojure . lisp)) before opening the notebook.

Something seems to be going wrong in either ein:notebook-install-kernel or ein:notebook-from-json. Code stepping is a bit tedious, but with some luck I might get to the bottom of this - eventually.

millejoh commented 4 years ago

@vxe - Don't think this is an issue with ein. I think the issue is a conflict is with cider. Check to see if you have an entry in clojure-mode-hook that makes a call to cider.