class_docstr: An in-process kernel.
docstr: Called when a message is sent to the IO socket.
docstr_tok: ["Called","when","a","message","is","sent","to","the","IO","socket","."]
code: def _io_dispatch(self, change):
      """Called when a message is sent to the IO socket."""
      assert self.iopub_socket.io_thread is not None
      assert self.session is not None
      ident, msg = self.session.recv(
          self.iopub_socket.io_thread.socket, copy=False
      )
      for frontend in self.frontends:
          assert frontend is not None
          frontend.iopub_channel.call_handlers(msg)
  
imports: import logging
  import sys
  from contextlib import contextmanager
  from IPython.core.interactiveshell import InteractiveShellABC
  from traitlets import Any, Enum, Instance, List, Type, default
  from ipykernel.ipkernel import IPythonKernel
  from ipykernel.jsonutil import json_clean
  from ipykernel.zmqshell import ZMQInteractiveShell
  from ..iostream import BackgroundSocket, IOPubThread, OutStream
  from .constants import INPROCESS_KEY
  from .socket import DummySocket
label_desc: Use image node_id 8 for calling the InProcessKernel obj's underlying member method code with example usage: obj._io_dispatch(change) without return types