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 123 forks source link

ein:kernel--handle-iopub-reply: No :output callback for parent_id=... [375 times] #859

Open sam-s opened 1 year ago

sam-s commented 1 year ago

I am seeing the above message in the echo area. I killed all ein notebook buffers. how do I stop this?

("EIN system info"
 :emacs-version
 "GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0)
 of 2022-11-07"
 :window-system x
 :emacs-variant nil
 :build "--with-imagemagick --with-mailutils --with-native-compilation"
 :os
 (:uname
  "Linux darter 6.0.6-76060006-generic #202210290932~1667401208~22.04~d2df702 SMP PREEMPT_DYNAMIC Wed N x86_64 x86_64 x86_64 GNU/Linux
"
  :lsb-release
  "No LSB modules are available.
Distributor ID: Pop
Description:    Pop!_OS 22.04 LTS
Release:    22.04
Codename:   jammy
")
 :jupyter
 "Selected Jupyter core packages...
IPython          : 8.6.0
ipykernel        : 6.17.0
ipywidgets       : 8.0.2
jupyter_client   : 7.4.4
jupyter_core     : 4.11.2
jupyter_server   : 1.23.0
jupyterlab       : not installed
nbclient         : 0.7.0
nbconvert        : 7.2.3
nbformat         : 5.7.0
notebook         : 6.5.2
qtconsole        : 5.4.0
traitlets        : 5.5.0
"
 :image-types
 (svg imagemagick png gif tiff jpeg xpm xbm pbm)
 :image-types-available
 (svg imagemagick png gif tiff jpeg xpm xbm pbm)
 :request-backend curl
 :ein
 (:version "e04e1e1"
           :source-dir "/home/sds/src/sitelisp/emacs-ipython-notebook/lisp/")
 :lib
 ((:name "websocket"
         :path "~/.config/emacs/elpa/websocket-20210110.17/websocket.elc"
         :featurep t
         :version-var websocket-version
         :version "1.12")
  (:name "anaphora"
         :path "~/.config/emacs/elpa/anaphora-20180618.2200/anaphora.elc"
         :featurep t
         :version-var nil
         :version nil)
  (:name "request"
         :path "~/.config/emacs/elpa/request-20221022.1122/request.el"
         :featurep t
         :version-var request-version
         :version "0.3.3")
  (:name "deferred"
         :path "~/.config/emacs/elpa/deferred-20170901.1330/deferred.elc"
         :featurep t
         :version-var deferred:version
         :version "0.5.0")
  (:name "polymode"
         :path "~/.config/emacs/elpa/polymode-20220820.1630/polymode.elc"
         :featurep t
         :version-var nil
         :version nil)
  (:name "dash"
         :path "~/.config/emacs/elpa/dash-20221013.836/dash.el"
         :featurep t
         :version-var nil
         :version nil)
  (:name "with-editor"
         :path "~/.config/emacs/elpa/with-editor-20220810.1159/with-editor.elc"
         :featurep nil
         :version-var nil
         :version nil)))

log:

15:20:30:022: [verbose] WS start: ws://127.0.0.1:8888/api/kernels/c9f94829-0763-459a-a932-6bd571acb2c7/channels?session_id=57e2bb9f-a86f-4da2-a44b-748c48a4ff97 @#<buffer  *ein: http://127.0.0.1:8888/eeg4-conn-exp.ipynb*[python]>
15:20:30:049: [verbose] WS opened: ws://127.0.0.1:8888/api/kernels/c9f94829-0763-459a-a932-6bd571acb2c7/channels?session_id=57e2bb9f-a86f-4da2-a44b-748c48a4ff97 @#<buffer  *ein: http://127.0.0.1:8888/eeg4-conn-exp.ipynb*[python]>
15:20:57:059: [verbose] Notebook is saved. @#<buffer  *ein: http://127.0.0.1:8888/eeg4-conn-exp.ipynb*[python]>
21:57:21:099: [warn] ein:kernel--handle-iopub-reply: No :output callback for parent_id=8b15e78277694914b6b98fdc90f4dbaf @#<buffer *ein: http://127.0.0.1:8888/eeg4-conn-exp.ipynb*>
21:57:46:928: [warn] ein:kernel--handle-iopub-reply: No :output callback for parent_id=0863396a8f844fee9ab3ef807ba67052 @#<buffer *ein: http://127.0.0.1:8888/eeg4-conn-exp.ipynb*>
21:58:17:994: [warn] ein:kernel--handle-iopub-reply: No :output callback for parent_id=7b05e5dad0fc46db8e9ea1c82e92953d @#<buffer *ein: http://127.0.0.1:8888/eeg4-conn-exp.ipynb*>
21:58:36:322: [warn] ein:kernel--handle-iopub-reply: No :output callback for parent_id=ef50690bdccf483794efa378cd41f08c @#<buffer *ein: http://127.0.0.1:8888/eeg4-conn-exp.ipynb*>
21:59:18:710: [warn] ein:kernel--handle-iopub-reply: No :output callback for parent_id=d92c4aa5b85e407f894d67f078c4d02d @#<buffer *ein: http://127.0.0.1:8888/eeg4-conn-exp.ipynb*>
sam-s commented 1 year ago

Basically, how do I reset ein? kill all its connections? thank you!

sam-s commented 1 year ago

I added (ein:kernel-disconnect kernel)insideein:kernel--handle-iopub-reply` and re-defined it, and now the messages are gone. it would be nice if there were a less hacky way to deal with this.