class_docstr: Extend IPython kernel for parallel computing
class_docstr_tok: ["Extend","IPython","kernel","for","parallel","computing"]
code: def do_execute(self, *args, **kwargs):
      coro = self._do_execute_async(*args, **kwargs)
      if ipykernel.version_info < (6,):
          # ipykernel 5 uses gen.maybe_future which doesn't accept async def coroutines,
          # but it does accept asyncio.Futures
          return asyncio.ensure_future(coro)
      else:
          return coro
  
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 11 for calling the IPythonParallelKernel obj's underlying member method code with example usage: obj.do_execute() and returns: asyncio, coro