1

Is there a way to print the jupyter messages being passed to the Jupyter Kernel after executing a statement in a notebook? I'm not able to find anything online.

Karthik
  • 129
  • 11

1 Answers1

1

There are some related discussions at the Jupyter Discourse forum:

  • requestExecute and onReply, etc. handler functions on the future, or listen to the future’s done promise is discussed here

  • Listening to kernel messages in JupyterLab is discussed here and you may want to ask there about extensions mentioned that listen to kernel messages.

  • I've seen experimental_do_complete() here referenced as being a way to add some logging to the ipykernel.

  • register_target() call via Comm is discussed here

  • more on ipykernel communicating via comms here

  • using ZeroMQ to access the kernel is discussed here

  • Kernel Gateway providing an HTTP+WebSockets interface to kernel management and kernels is discussed here

  • executing python code in the kernel on the user's behalf and dealing with how the output is returned, involving comms and API mention, is discussed here.

On StackOverflow, I just noted:

  • here links to a page that explains how to set up a kernel on a remote machine (server), and interact with the kernel on a local machine (client) via a qtconsole
Wayne
  • 6,607
  • 8
  • 36
  • 93