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

Error is thrown when opening a notebook after ein:run: #829

Closed zeta-00 closed 2 years ago

zeta-00 commented 2 years ago

Greetings,

I installed the required tools to do Python/Jupyter coding in EIN, but, for some reason, after I run ein:run then press [New Notebook], these errors get thrown:

error in process sentinel: ein:insert-read-only: Wrong type argument: number-or-marker-p, t error in process sentinel: Wrong type argument: number-or-marker-p, t

It's been a while since I used EIN, so I'm not sure if I'm missing something in my .emacs config. I installed all the required Python/Jupyter stuff with the nix package manager so there shouldn't be any issues there.

Anyways, here's my EIN config in my .emacs file:

;;------------------------------------------------- (use-package ein :defer t :hook (ein-mode . elpy-mode) :config (setq ein:auto-save-on-execute t) (setq ein:output-area-inlined-images t) (setq ein:slice-image t) (setq ein:complete-on-dot t) (setq ein:polymode t) (setq ein:use-smartrep t) (setq ein:use-auto-complete t) :custom (ein:completion-backend 'ein:use-company-backend) (ein:truncate-long-cell-output t) (ein:auto-black-on-execute t) ) ;;------------------------------------------------- (use-package python-mode :defer t :hook (python-mode . company-mode) :config ;; emacs calculates line offset: (setq python-indent-guess-indent-offset t) ;; silence warnings while emacs calculates the line offset: (setq python-indent-guess-indent-offset-verbose t)) ;;------------------------------------------------- ;; company-jedi setup: (defun my/python-mode-hook () (add-to-list 'company-backends 'company-jedi))

(add-hook 'python-mode-hook 'my/python-mode-hook) ;;------------------------------------------------- (use-package elpy :defer t :config (elpy-enable) (elpy-company-backend) (elpy-get-info-from-shell) (setq python-shell-interpreter "ipython" python-shell-interpreter-args "-i --simple-prompt")) ;;-------------------------------------------------

zeta-00 commented 2 years ago

Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p t) ein:maybe-truncate-string-lines("In [ ]:" t) ein:insert-read-only("In [ ]:" font-lock-face ein:codecell-input-prompt-face)

f(compiled-function (cell) "Insert prompt of the CELL in the buffer.\n Called from ewoc pretty printer via `ein:cell-pp'." #<bytecode 0x527cf9d9>)(#)

apply(#f(compiled-function (cell) "Insert prompt of the CELL in the buffer.\n Called from ewoc pretty printer via `ein:cell-pp'." #<bytecode 0x527cf9d9>) # nil) ein:cell-insert-prompt(#) ein:cell-pp((prompt) #) ein:worksheet-pp(#s(ein:$node :path (cell prompt) :data # :class nil)) ewoc--refresh-node(ein:worksheet-pp [[[[#2 #4 "" #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #3 DL-LIST #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #2 #("\n" 0 1 (read-only t front-sticky t)) #<marker at 1 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] [#2 [#3 [#4 #2 #("\n" 0 1 (read-only t front-sticky t)) #<marker at 1 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] DL-LIST #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] "" #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #s(ein:$node :path (cell prompt) :data # :class nil) #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] [[[[#3 #5 #("\n" 0 1 (read-only t front-sticky t)) #<marker at 1 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #4 #s(ein:$node :path (cell prompt) :data # :class nil) #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #3 "" #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] [#3 [#4 [#5 #3 "" #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #s(ein:$node :path (cell prompt) :data # :class nil) #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #("\n" 0 1 (read-only t front-sticky t)) #<marker at 1 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] DL-LIST #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>]) ewoc--insert-new-node([[[[#1 #3 DL-LIST #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #2 #("\n" 0 1 (read-only t front-sticky t)) #<marker at 1 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #1 #s(ein:$node :path (cell prompt) :data # :class nil) #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] [#1 [#2 [#3 #1 #s(ein:$node :path (cell prompt) :data # :class nil) #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #("\n" 0 1 (read-only t front-sticky t)) #<marker at 1 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] DL-LIST #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] "" #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #s(ein:$node :path (cell prompt) :data # :class nil) ein:worksheet-pp [[[[#4 #6 #("\n" 0 1 (read-only t front-sticky t)) #<marker at 1 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #5 #s(ein:$node :path (cell prompt) :data # :class nil) #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #4 "" #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] [#4 [#5 [#6 #4 "" #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #s(ein:$node :path (cell prompt) :data # :class nil) #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #("\n" 0 1 (read-only t front-sticky t)) #<marker at 1 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] DL-LIST #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>]) ewoc-enter-before(#s(ewoc :buffer #<buffer ein: http://127.0.0.1:8888/Untitled3.ipynb> :pretty-printer ein:worksheet-pp :header [[[[#2 #4 #s(ein:$node :path (cell prompt) :data # :class nil) #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #3 "" #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #2 DL-LIST #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] [#2 [#3 [#4 #2 DL-LIST #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] "" #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #s(ein:$node :path (cell prompt) :data # :class nil) #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #("\n" 0 1 (read-only t front-sticky t)) #<marker at 1 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] :footer [[[[#2 #4 DL-LIST #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #3 #("\n" 0 1 (read-only t front-sticky t)) #<marker at 1 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #2 #s(ein:$node :path (cell prompt) :data # :class nil) #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] [#2 [#3 [#4 #2 #s(ein:$node :path (cell prompt) :data # :class nil) #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #("\n" 0 1 (read-only t front-sticky t)) #<marker at 1 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] DL-LIST #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] "" #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] :dll [[[[#2 #4 #("\n" 0 1 (read-only t front-sticky t)) #<marker at 1 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #3 #s(ein:$node :path (cell prompt) :data # :class nil) #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #2 "" #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] [#2 [#3 [#4 #2 "" #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #s(ein:$node :path (cell prompt) :data # :class nil) #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #("\n" 0 1 (read-only t front-sticky t)) #<marker at 1 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] DL-LIST #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] :last-node nil :hf-pp insert) [[[[#2 #4 DL-LIST #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #3 #("\n" 0 1 (read-only t front-sticky t)) #<marker at 1 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #2 #s(ein:$node :path (cell prompt) :data # :class nil) #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] [#2 [#3 [#4 #2 #s(ein:$node :path (cell prompt) :data # :class nil) #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #("\n" 0 1 (read-only t front-sticky t)) #<marker at 1 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] DL-LIST #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] "" #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #s(ein:$node :path (cell prompt) :data # :class nil)) ewoc-enter-last(#s(ewoc :buffer #<buffer ein: http://127.0.0.1:8888/Untitled3.ipynb> :pretty-printer ein:worksheet-pp :header [[[[#2 #4 #s(ein:$node :path (cell prompt) :data # :class nil) #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #3 "" #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #2 DL-LIST #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] [#2 [#3 [#4 #2 DL-LIST #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] "" #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #s(ein:$node :path (cell prompt) :data # :class nil) #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #("\n" 0 1 (read-only t front-sticky t)) #<marker at 1 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] :footer [[[[#2 #4 DL-LIST #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #3 #("\n" 0 1 (read-only t front-sticky t)) #<marker at 1 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #2 #s(ein:$node :path (cell prompt) :data # :class nil) #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] [#2 [#3 [#4 #2 #s(ein:$node :path (cell prompt) :data # :class nil) #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #("\n" 0 1 (read-only t front-sticky t)) #<marker at 1 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] DL-LIST #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] "" #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] :dll [[[[#2 #4 #("\n" 0 1 (read-only t front-sticky t)) #<marker at 1 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #3 #s(ein:$node :path (cell prompt) :data # :class nil) #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #2 "" #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] [#2 [#3 [#4 #2 "" #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #s(ein:$node :path (cell prompt) :data # :class nil) #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] #("\n" 0 1 (read-only t front-sticky t)) #<marker at 1 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] DL-LIST #<marker at 2 in ein: http://127.0.0.1:8888/Untitled3.ipynb>] :last-node nil :hf-pp insert) #s(ein:$node :path (cell prompt) :data # :class nil))

f(compiled-function (&rest path) #<bytecode 0x46a2a7ff>)(prompt)

ein:cell-make-element(#f(compiled-function (&rest path) #<bytecode 0x46a2a7ff>) 0)

f(compiled-function (cell) #<bytecode 0x527cecf7>)(#)

apply(#f(compiled-function (cell) #<bytecode 0x527cecf7>) # nil) ein:cell-enter-last(#) ein:worksheet-insert-cell-below(# code nil t)

f(compiled-function (ws) #<bytecode 0x527fe68f>)(#)

apply(#f(compiled-function (ws) #<bytecode 0x527fe68f>) # nil) ein:worksheet-render(#) ein:notebook--worksheet-render(#s(ein:$notebook :url-or-port "http://127.0.0.1:8888" :notebook-id nil :notebook-path "Untitled3.ipynb" :kernel #s(ein:$kernel :url-or-port "http://127.0.0.1:8888" :path "Untitled3.ipynb" :kernelspec #s(ein:$kernelspec :name "python3" :display-name "Python 3 (ipykernel)" :resources (:logo-64x64 "/kernelspecs/python3/logo-64x64.png" :logo-32x32 "/kernelspecs/python3/logo-32x32.png") :spec (:argv ["python" "-m" "ipykernel_launcher" "-f" "{connection_file}"] :env nil :display_name "Python 3 (ipykernel)" :language "python" :interrupt_mode "signal" :metadata (:debugger t)) :language "python") :events # :api-version 5 :session-id "5b461fe0-1628-41b9-bcdf-633ae7d3e5cd" :kernel-id nil :shell-channel nil :iopub-channel nil :websocket nil :base-url "/api/kernels" :kernel-url nil :ws-url nil :username "username" :msg-callbacks #<hash-table equal 0/65 0x4716270b> :oinfo-cache #<hash-table equal 0/65 0x4719445b> :after-start-hook nil :after-execute-hook nil) :kernelinfo nil :kernelspec #s(ein:$kernelspec :name "python3" :display-name "Python 3 (ipykernel)" :resources (:logo-64x64 "/kernelspecs/python3/logo-64x64.png" :logo-32x32 "/kernelspecs/python3/logo-32x32.png") :spec (:argv ["python" "-m" "ipykernel_launcher" "-f" "{connection_file}"] :env nil :display_name "Python 3 (ipykernel)" :language "python" :interrupt_mode "signal" :metadata (:debugger t)) :language "python") :pager "ein:pager http://127.0.0.1:8888/Untitled3.ipynb" :dirty nil :metadata nil :notebook-name "Untitled3.ipynb" :nbformat 4 :nbformat-minor 5 :events # :worksheets (#) :scratchsheets nil :api-version 5) #) ein:notebook-from-json(#s(ein:$notebook :url-or-port "http://127.0.0.1:8888" :notebook-id nil :notebook-path "Untitled3.ipynb" :kernel #s(ein:$kernel :url-or-port "http://127.0.0.1:8888" :path "Untitled3.ipynb" :kernelspec #s(ein:$kernelspec :name "python3" :display-name "Python 3 (ipykernel)" :resources (:logo-64x64 "/kernelspecs/python3/logo-64x64.png" :logo-32x32 "/kernelspecs/python3/logo-32x32.png") :spec (:argv ["python" "-m" "ipykernel_launcher" "-f" "{connection_file}"] :env nil :display_name "Python 3 (ipykernel)" :language "python" :interrupt_mode "signal" :metadata (:debugger t)) :language "python") :events # :api-version 5 :session-id "5b461fe0-1628-41b9-bcdf-633ae7d3e5cd" :kernel-id nil :shell-channel nil :iopub-channel nil :websocket nil :base-url "/api/kernels" :kernel-url nil :ws-url nil :username "username" :msg-callbacks #<hash-table equal 0/65 0x4716270b> :oinfo-cache #<hash-table equal 0/65 0x4719445b> :after-start-hook nil :after-execute-hook nil) :kernelinfo nil :kernelspec #s(ein:$kernelspec :name "python3" :display-name "Python 3 (ipykernel)" :resources (:logo-64x64 "/kernelspecs/python3/logo-64x64.png" :logo-32x32 "/kernelspecs/python3/logo-32x32.png") :spec (:argv ["python" "-m" "ipykernel_launcher" "-f" "{connection_file}"] :env nil :display_name "Python 3 (ipykernel)" :language "python" :interrupt_mode "signal" :metadata (:debugger t)) :language "python") :pager "ein:pager http://127.0.0.1:8888/Untitled3.ipynb" :dirty nil :metadata nil :notebook-name "Untitled3.ipynb" :nbformat 4 :nbformat-minor 5 :events # :worksheets (#) :scratchsheets nil :api-version 5) (:cells [] :metadata nil :nbformat 4 :nbformat_minor 5)) ein:notebook-open--callback(#s(ein:$notebook :url-or-port "http://127.0.0.1:8888" :notebook-id nil :notebook-path "Untitled3.ipynb" :kernel #s(ein:$kernel :url-or-port "http://127.0.0.1:8888" :path "Untitled3.ipynb" :kernelspec #s(ein:$kernelspec :name "python3" :display-name "Python 3 (ipykernel)" :resources (:logo-64x64 "/kernelspecs/python3/logo-64x64.png" :logo-32x32 "/kernelspecs/python3/logo-32x32.png") :spec (:argv ["python" "-m" "ipykernel_launcher" "-f" "{connection_file}"] :env nil :display_name "Python 3 (ipykernel)" :language "python" :interrupt_mode "signal" :metadata (:debugger t)) :language "python") :events # :api-version 5 :session-id "5b461fe0-1628-41b9-bcdf-633ae7d3e5cd" :kernel-id nil :shell-channel nil :iopub-channel nil :websocket nil :base-url "/api/kernels" :kernel-url nil :ws-url nil :username "username" :msg-callbacks #<hash-table equal 0/65 0x4716270b> :oinfo-cache #<hash-table equal 0/65 0x4719445b> :after-start-hook nil :after-execute-hook nil) :kernelinfo nil :kernelspec #s(ein:$kernelspec :name "python3" :display-name "Python 3 (ipykernel)" :resources (:logo-64x64 "/kernelspecs/python3/logo-64x64.png" :logo-32x32 "/kernelspecs/python3/logo-32x32.png") :spec (:argv ["python" "-m" "ipykernel_launcher" "-f" "{connection_file}"] :env nil :display_name "Python 3 (ipykernel)" :language "python" :interrupt_mode "signal" :metadata (:debugger t)) :language "python") :pager "ein:pager http://127.0.0.1:8888/Untitled3.ipynb" :dirty nil :metadata nil :notebook-name "Untitled3.ipynb" :nbformat 4 :nbformat-minor 5 :events # :worksheets (#) :scratchsheets nil :api-version 5) #f(compiled-function (&rest args2) #<bytecode 0x4741ebab>) #s(ein:$content :url-or-port "http://127.0.0.1:8888" :notebook-api-version 5 :name "Untitled3.ipynb" :path "Untitled3.ipynb" :type "notebook" :writable t :created "2022-02-10T01:38:29.492501Z" :last-modified "2022-02-10T01:38:29.492501Z" :mimetype nil :raw-content (:cells [] :metadata nil :nbformat 4 :nbformat_minor 5) :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 "Untitled3.ipynb" :kernel #s(ein:$kernel :url-or-port "http://127.0.0.1:8888" :path "Untitled3.ipynb" :kernelspec #s(ein:$kernelspec :name "python3" :display-name "Python 3 (ipykernel)" :resources (:logo-64x64 "/kernelspecs/python3/logo-64x64.png" :logo-32x32 "/kernelspecs/python3/logo-32x32.png") :spec (:argv ["python" "-m" "ipykernel_launcher" "-f" "{connection_file}"] :env nil :display_name "Python 3 (ipykernel)" :language "python" :interrupt_mode "signal" :metadata (:debugger t)) :language "python") :events # :api-version 5 :session-id "5b461fe0-1628-41b9-bcdf-633ae7d3e5cd" :kernel-id nil :shell-channel nil :iopub-channel nil :websocket nil :base-url "/api/kernels" :kernel-url nil :ws-url nil :username "username" :msg-callbacks #<hash-table equal 0/65 0x4716270b> :oinfo-cache #<hash-table equal 0/65 0x4719445b> :after-start-hook nil :after-execute-hook nil) :kernelinfo nil :kernelspec #s(ein:$kernelspec :name "python3" :display-name "Python 3 (ipykernel)" :resources (:logo-64x64 "/kernelspecs/python3/logo-64x64.png" :logo-32x32 "/kernelspecs/python3/logo-32x32.png") :spec (:argv ["python" "-m" "ipykernel_launcher" "-f" "{connection_file}"] :env nil :display_name "Python 3 (ipykernel)" :language "python" :interrupt_mode "signal" :metadata (:debugger t)) :language "python") :pager "ein:pager http://127.0.0.1:8888/Untitled3.ipynb" :dirty nil :metadata nil :notebook-name "Untitled3.ipynb" :nbformat 4 :nbformat-minor 5 :events # :worksheets (#) :scratchsheets nil :api-version 5) #f(compiled-function (&rest args2) #<bytecode 0x4741ebab>) #s(ein:$content :url-or-port "http://127.0.0.1:8888" :notebook-api-version 5 :name "Untitled3.ipynb" :path "Untitled3.ipynb" :type "notebook" :writable t :created "2022-02-10T01:38:29.492501Z" :last-modified "2022-02-10T01:38:29.492501Z" :mimetype nil :raw-content (:cells [] :metadata nil :nbformat 4 :nbformat_minor 5) :format "json" :session-p nil)))

f(compiled-function (&rest args2) #<bytecode 0x4741ebfd>)(#s(ein:$content :url-or-port "http://127.0.0.1:8888" :notebook-api-version 5 :name "Untitled3.ipynb" :path "Untitled3.ipynb" :type "notebook" :writable t :created "2022-02-10T01:38:29.492501Z" :last-modified "2022-02-10T01:38:29.492501Z" :mimetype nil :raw-content (:cells [] :metadata nil :nbformat 4 :nbformat_minor 5) :format "json" :session-p nil))

ein:content-query-contents--success("http://127.0.0.1:8888" "Untitled3.ipynb" #f(compiled-function (&rest args2) #<bytecode 0x4741ebfd>) :data (:name "Untitled3.ipynb" :path "Untitled3.ipynb" :last_modified "2022-02-10T01:38:29.492501Z" :created "2022-02-10T01:38:29.492501Z" :content (:cells [] :metadata nil :nbformat 4 :nbformat_minor 5) :format "json" :mimetype nil :size 72 :writable t :type "notebook") :symbol-status success :error-thrown nil :response #s(request-response :status-code 200 :history nil :data (:name "Untitled3.ipynb" :path "Untitled3.ipynb" :last_modified "2022-02-10T01:38:29.492501Z" :created "2022-02-10T01:38:29.492501Z" :content (:cells [] :metadata nil :nbformat 4 :nbformat_minor 5) :format "json" :mimetype nil :size 72 :writable t :type "notebook") :error-thrown nil :symbol-status success :url "http://127.0.0.1:8888/api/contents/Untitled3.ipynb" :done-p nil :settings (:type "GET" :parser ein:json-read :complete #f(compiled-function (&rest args2) #<bytecode 0x527bdb1d>) :success #f(compiled-function (&rest args2) #<bytecode 0x527bdb39>) :error #f(compiled-function (&rest args2) #<bytecode 0x527bdb55>) :timeout 10.0 :sync nil :headers (("User-Agent" . "Mozilla/5.0") ("X-XSRFTOKEN" . "2|ac7a28d7|b9730aabf9bc504208d5230279350d55|164445...")) :encoding binary :url "http://127.0.0.1:8888/api/contents/Untitled3.ipynb" :response #11) :-buffer # :-raw-header "HTTP/1.1 200 OK\nServer: TornadoServer/6.1\nContent-..." :-timer nil :-backend curl)) apply(ein:content-query-contents--success ("http://127.0.0.1:8888" "Untitled3.ipynb" #f(compiled-function (&rest args2) #<bytecode 0x4741ebfd>) :data (:name "Untitled3.ipynb" :path "Untitled3.ipynb" :last_modified "2022-02-10T01:38:29.492501Z" :created "2022-02-10T01:38:29.492501Z" :content (:cells [] :metadata nil :nbformat 4 :nbformat_minor 5) :format "json" :mimetype nil :size 72 :writable t :type "notebook") :symbol-status success :error-thrown nil :response #s(request-response :status-code 200 :history nil :data (:name "Untitled3.ipynb" :path "Untitled3.ipynb" :last_modified "2022-02-10T01:38:29.492501Z" :created "2022-02-10T01:38:29.492501Z" :content (:cells [] :metadata nil :nbformat 4 :nbformat_minor 5) :format "json" :mimetype nil :size 72 :writable t :type "notebook") :error-thrown nil :symbol-status success :url "http://127.0.0.1:8888/api/contents/Untitled3.ipynb" :done-p nil :settings (:type "GET" :parser ein:json-read :complete #f(compiled-function (&rest args2) #<bytecode 0x527bdb1d>) :success #f(compiled-function (&rest args2) #<bytecode 0x527bdb39>) :error #f(compiled-function (&rest args2) #<bytecode 0x527bdb55>) :timeout 10.0 :sync nil :headers (("User-Agent" . "Mozilla/5.0") ("X-XSRFTOKEN" . "2|ac7a28d7|b9730aabf9bc504208d5230279350d55|164445...")) :encoding binary :url "http://127.0.0.1:8888/api/contents/Untitled3.ipynb" :response #13) :-buffer # :-raw-header "HTTP/1.1 200 OK\nServer: TornadoServer/6.1\nContent-..." :-timer nil :-backend curl)))

f(compiled-function (&rest args2) #<bytecode 0x527bdb39>)(:data (:name "Untitled3.ipynb" :path "Untitled3.ipynb" :last_modified "2022-02-10T01:38:29.492501Z" :created "2022-02-10T01:38:29.492501Z" :content (:cells [] :metadata nil :nbformat 4 :nbformat_minor 5) :format "json" :mimetype nil :size 72 :writable t :type "notebook") :symbol-status success :error-thrown nil :response #s(request-response :status-code 200 :history nil :data (:name "Untitled3.ipynb" :path "Untitled3.ipynb" :last_modified "2022-02-10T01:38:29.492501Z" :created "2022-02-10T01:38:29.492501Z" :content (:cells [] :metadata nil :nbformat 4 :nbformat_minor 5) :format "json" :mimetype nil :size 72 :writable t :type "notebook") :error-thrown nil :symbol-status success :url "http://127.0.0.1:8888/api/contents/Untitled3.ipynb" :done-p nil :settings (:type "GET" :parser ein:json-read :complete #f(compiled-function (&rest args2) #<bytecode 0x527bdb1d>) :success #f(compiled-function (&rest args2) #<bytecode 0x527bdb39>) :error #f(compiled-function (&rest args2) #<bytecode 0x527bdb55>) :timeout 10.0 :sync nil :headers (("User-Agent" . "Mozilla/5.0") ("X-XSRFTOKEN" . "2|ac7a28d7|b9730aabf9bc504208d5230279350d55|164445...")) :encoding binary :url "http://127.0.0.1:8888/api/contents/Untitled3.ipynb" :response #8) :-buffer # :-raw-header "HTTP/1.1 200 OK\nServer: TornadoServer/6.1\nContent-..." :-timer nil :-backend curl))

apply(#f(compiled-function (&rest args2) #<bytecode 0x527bdb39>) (:data (:name "Untitled3.ipynb" :path "Untitled3.ipynb" :last_modified "2022-02-10T01:38:29.492501Z" :created "2022-02-10T01:38:29.492501Z" :content (:cells [] :metadata nil :nbformat 4 :nbformat_minor 5) :format "json" :mimetype nil :size 72 :writable t :type "notebook") :symbol-status success :error-thrown nil :response #s(request-response :status-code 200 :history nil :data (:name "Untitled3.ipynb" :path "Untitled3.ipynb" :last_modified "2022-02-10T01:38:29.492501Z" :created "2022-02-10T01:38:29.492501Z" :content (:cells [] :metadata nil :nbformat 4 :nbformat_minor 5) :format "json" :mimetype nil :size 72 :writable t :type "notebook") :error-thrown nil :symbol-status success :url "http://127.0.0.1:8888/api/contents/Untitled3.ipynb" :done-p nil :settings (:type "GET" :parser ein:json-read :complete #f(compiled-function (&rest args2) #<bytecode 0x527bdb1d>) :success #f(compiled-function (&rest args2) #<bytecode 0x527bdb39>) :error #f(compiled-function (&rest args2) #<bytecode 0x527bdb55>) :timeout 10.0 :sync nil :headers (("User-Agent" . "Mozilla/5.0") ("X-XSRFTOKEN" . "2|ac7a28d7|b9730aabf9bc504208d5230279350d55|164445...")) :encoding binary :url "http://127.0.0.1:8888/api/contents/Untitled3.ipynb" :response #10) :-buffer # :-raw-header "HTTP/1.1 200 OK\nServer: TornadoServer/6.1\nContent-..." :-timer nil :-backend curl))) request--callback(# :type "GET" :parser ein:json-read :complete #f(compiled-function (&rest args2) #<bytecode 0x527bdb1d>) :success #f(compiled-function (&rest args2) #<bytecode 0x527bdb39>) :error #f(compiled-function (&rest args2) #<bytecode 0x527bdb55>) :timeout 10.0 :sync nil :headers (("User-Agent" . "Mozilla/5.0") ("X-XSRFTOKEN" . "2|ac7a28d7|b9730aabf9bc504208d5230279350d55|164445...")) :encoding binary :url "http://127.0.0.1:8888/api/contents/Untitled3.ipynb" :response #s(request-response :status-code 200 :history nil :data (:name "Untitled3.ipynb" :path "Untitled3.ipynb" :last_modified "2022-02-10T01:38:29.492501Z" :created "2022-02-10T01:38:29.492501Z" :content (:cells [] :metadata nil :nbformat 4 :nbformat_minor 5) :format "json" :mimetype nil :size 72 :writable t :type "notebook") :error-thrown nil :symbol-status success :url "http://127.0.0.1:8888/api/contents/Untitled3.ipynb" :done-p nil :settings (:type "GET" :parser ein:json-read :complete #f(compiled-function (&rest args2) #<bytecode 0x527bdb1d>) :success #f(compiled-function (&rest args2) #<bytecode 0x527bdb39>) :error #f(compiled-function (&rest args2) #<bytecode 0x527bdb55>) :timeout 10.0 :sync nil :headers (("User-Agent" . "Mozilla/5.0") ("X-XSRFTOKEN" . "2|ac7a28d7|b9730aabf9bc504208d5230279350d55|164445...")) :encoding binary :url "http://127.0.0.1:8888/api/contents/Untitled3.ipynb" :response #23) :-buffer # :-raw-header "HTTP/1.1 200 OK\nServer: TornadoServer/6.1\nContent-..." :-timer nil :-backend curl)) apply(request--callback # (:type "GET" :parser ein:json-read :complete #f(compiled-function (&rest args2) #<bytecode 0x527bdb1d>) :success #f(compiled-function (&rest args2) #<bytecode 0x527bdb39>) :error #f(compiled-function (&rest args2) #<bytecode 0x527bdb55>) :timeout 10.0 :sync nil :headers (("User-Agent" . "Mozilla/5.0") ("X-XSRFTOKEN" . "2|ac7a28d7|b9730aabf9bc504208d5230279350d55|164445...")) :encoding binary :url "http://127.0.0.1:8888/api/contents/Untitled3.ipynb" :response #s(request-response :status-code 200 :history nil :data (:name "Untitled3.ipynb" :path "Untitled3.ipynb" :last_modified "2022-02-10T01:38:29.492501Z" :created "2022-02-10T01:38:29.492501Z" :content (:cells [] :metadata nil :nbformat 4 :nbformat_minor 5) :format "json" :mimetype nil :size 72 :writable t :type "notebook") :error-thrown nil :symbol-status success :url "http://127.0.0.1:8888/api/contents/Untitled3.ipynb" :done-p nil :settings #3 :-buffer # :-raw-header "HTTP/1.1 200 OK\nServer: TornadoServer/6.1\nContent-..." :-timer nil :-backend curl))) request--curl-callback("http://127.0.0.1:8888/api/contents/Untitled3.ipynb" # "finished\n") apply(request--curl-callback ("http://127.0.0.1:8888/api/contents/Untitled3.ipynb" # "finished\n"))

f(compiled-function (&rest args2) #<bytecode 0x46a0f92f>)(# "finished\n")

zeta-00 commented 2 years ago

When I run jupyter-notebook in a terminal, it opens in a web browser and works just fine, but, for some reason EIN is not working in Emacs.

zeta-00 commented 2 years ago

(use-package eglot :defer t :hook (python-mode . eglot-ensure))

I have a hook to run eglot-mode whenever python-mode gets activated for a regular file, but I'm not sure if this is messing things up whenever I open a .ipynb file with EIN.

zeta-00 commented 2 years ago

Also, I'm using treemacs so I'm not sure if that's what is messing up EIN in Emacs.

dickmao commented 2 years ago

We never seem to get anywhere #806 #775 #723 #720 #709 #708 #642 #636.

The goal of data analysis is getting results, not fighting with your tools. While I myself have not heeded my own advice, and have dedicated my waking hours to fighting emacs, I do not recommend that poor life choice to others.