class_docstr: A client for an in-process kernel.
  
  This class implements the interface of
  `jupyter_client.clientabc.KernelClientABC` and allows
  (asynchronous) frontends to be used seamlessly with an in-process kernel.
  
  See `jupyter_client.client.KernelClient` for docstrings.
class_docstr_tok: ["A","client","for","an","in-process","kernel",".","This","class","implements","the","interface","of","`","jupyter_client.clientabc.KernelClientABC","`","and","allows","(","asynchronous",")","frontends","to","be","used","seamlessly","with","an","in-process","kernel",".","See","`","jupyter_client.client.KernelClient","`","for","docstrings","."]
docstr: Execute code on the client.
docstr_tok: ["Execute","code","on","the","client","."]
code: def execute(
      self,
      code,
      silent=False,
      store_history=True,
      user_expressions=None,
      allow_stdin=None,
  ):
      """Execute code on the client."""
      if allow_stdin is None:
          allow_stdin = self.allow_stdin
      content = dict(
          code=code,
          silent=silent,
          store_history=store_history,
          user_expressions=user_expressions or {},
          allow_stdin=allow_stdin,
      )
      msg = self.session.msg("execute_request", content)
      self._dispatch_to_kernel(msg)
      return msg["header"]["msg_id"]
  
imports: import asyncio
  from jupyter_client.client import KernelClient
  from jupyter_client.clientabc import KernelClientABC
  from jupyter_core.utils import run_sync
  from traitlets import Instance, Type, default
  from .channels import InProcessChannel, InProcessHBChannel
label_desc: Use image node_id 9 for calling the InProcessKernelClient obj's underlying member method code with example usage: obj.execute(code, silent, store_history, user_expressions, allow_stdin) and returns: msg