class_docstr: Extend IPython kernel for parallel computing
class_docstr_tok: ["Extend","IPython","kernel","for","parallel","computing"]
docstr: abort a specific msg by id
docstr_tok: ["abort","a","specific","msg","by","id"]
code: def abort_request(self, stream, ident, parent):
      """abort a specific msg by id"""
      msg_ids = parent["content"].get("msg_ids", None)
      if isinstance(msg_ids, str):
          msg_ids = [msg_ids]
      if not msg_ids:
          f = self._abort_queues()
          if inspect.isawaitable(f):
              asyncio.ensure_future(f)
      for mid in msg_ids:
          self.aborted.add(str(mid))
  
      content = dict(status="ok")
      reply_msg = self.session.send(
          stream,
          "abort_reply",
          content=content,
          parent=parent,
          ident=ident,
      )
      self.log.debug("%s", reply_msg)
  
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 12 for calling the IPythonParallelKernel obj's underlying member method code with example usage: obj.abort_request(stream, ident, parent) without return types