class_docstr: Extend IPython kernel for parallel computing
class_docstr_tok: ["Extend","IPython","kernel","for","parallel","computing"]
code: def __init__(self, **kwargs):
      super().__init__(**kwargs)
      # add apply_request, in anticipation of upstream deprecation
      self.shell_handlers["apply_request"] = self.apply_request
      # set up data pub
      data_pub = self.shell.data_pub = self.data_pub_class(parent=self)
      self.shell.configurables.append(data_pub)
      data_pub.session = self.session
      data_pub.pub_socket = self.iopub_socket
      self.aborted = set()
  
imports: import asyncio
  import inspect
  import sys
  from functools import partial
  import ipykernel
  from ipykernel.ipkernel import IPythonKernel
  from traitlets import Integer, Type
  from ipyparallel.serialize import serialize_object, unpack_apply_message
  from ipyparallel.util import utcnow
  from .datapub import ZMQDataPublisher
label_desc: Use image node_id 3 to create a new IPythonParallelKernel object from inherited base classes: IPythonKernel with example: obj = IPythonParallelKernel()