tkf/emacs-ipython-notebook

Can not open notebook from notebook list

RishiSadhir opened this issue · 1 comments

Platform: Windows 10
Emacs: 25.3.1

Steps to reproduce:

  1. Start emacs
  2. Start jupyter notebook in terminal
  3. M-x ein:notebooklist-login -> 8888 ->
  4. Navigate to Untitled.ipynb and click open
  5. Nothing happens.

Its worth noting that I can manipulate this file just fine from the browser.

Here is the output of the log with debug mode turned on:

[debug] NOTEBOOKLIST-LOGIN: 8888:64f378303a85c3b9fa2cd560b57bbcba0a087d5693f0982e @#<buffer *scratch*>
[debug] NOTEBOOKLIST-LOGIN: 8888:64f378303a85c3b9fa2cd560b57bbcba0a087d5693f0982e @#<buffer *Messages*>
[info] Failed to login to 8888 @#<buffer *Messages*>
[info] Login to 8888 complete. Now you can open notebook list by `ein:notebooklist-open'. @#<buffer *scratch*>
[debug] NOTEBOOKLIST-OPEN: 8888/ @#<buffer *scratch*>
[info] Opened notebook list at http://127.0.0.1:8888 with path . @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
[info] Opening notebook Untitled.ipynb... @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
[debug] Opening notebook at Untitled.ipynb @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
[info] Reading nbformat4 notebook. @#<buffer *Messages*>
[info] Kernel started: 7040dcea-ecb5-41a8-9109-2687163fb259 @#<buffer *Messages*>
[info] Starting channels WS: "ws://127.0.0.1:8888/api/kernels/7040dcea-ecb5-41a8-9109-2687163fb259/channels?session_id=d9f93ad1-386c-4bf2-9ed2-031fe6980a23" @#<buffer *Messages*>
[debug] Storing cookies in prep for opening websocket ((... ... ...)) @#<buffer *Messages*>
[debug] EIN:KERNEL-RUN-AFTER-START-HOOK @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
[debug] code: __import__('sys').path.append('c:/Users/Rishi/AppData/Roaming/.emacs.d/elpa/ein-20180214.1442/') @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
[debug] KERNEL--HANDLE_CHANNELS-REPLY @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
[debug] KERNEL--HANDLE-IOPUB-REPLY @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
[debug] KERNEL--HANDLE-IOPUB-REPLY: msg_type = status @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
[debug] Event: status_busy\.Kernel @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
[info] Unknown event: status_busy\.Kernel @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
[debug] KERNEL--HANDLE-IOPUB-REPLY: finished @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
[debug] KERNEL--HANDLE_CHANNELS-REPLY @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
[debug] KERNEL--HANDLE-IOPUB-REPLY @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
[debug] KERNEL--HANDLE-IOPUB-REPLY: msg_type = status @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
[debug] Event: status_idle\.Kernel @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
[info] Unknown event: status_idle\.Kernel @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
[debug] KERNEL--HANDLE-IOPUB-REPLY: finished @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
[debug] KERNEL--HANDLE_CHANNELS-REPLY @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
[debug] KERNEL--HANDLE-SHELL-REPLY @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
[debug] KERNEL--HANDLE-SHELL-REPLY: msg_type = execute_reply @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
[debug] no callback for: msg_type=execute_reply msg_id=e2fbcf8e-239a-4155-ba87-454b566ae9be @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
[debug] Event: execution_count\.Kernel @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
[info] Unknown event: execution_count\.Kernel @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
[debug] KERNEL--HANDLE-SHELL-REPLY: finished @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
[debug] (via run-at-time) onclose-arg changed to: (:ws-url "ws://127.0.0.1:8888/api/kernels/7040dcea-ecb5-41a8-9109-2687163fb259" :already-called-onclose nil :early nil) @#<buffer *ein:notebooklist http://127.0.0.1:8888*>
[debug] NOTEBOOKLIST-OPEN: http://127.0.0.1:8888/ @#<buffer  *Minibuf-1*>
[info] Opened notebook list at http://127.0.0.1:8888 with path . @#<buffer *ein:notebooklist http://127.0.0.1:8888*>

Thanks for all your hard work!

Sorry I didn't see this - note that this is tkf's version of ein, which is no longer maintained. Active development is going on over at millejoh/emacs-ipython-notebook.

If you wouldn't mind and are still having problems, could you reopen this issue over at https://github.com/millejoh/emacs-ipython-notebook/issues? Also would you please include the output log from the jupyter notebook?