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: Get code inspection.
docstr_tok: ["Get","code","inspection","."]
code: def inspect(self, code, cursor_pos=None, detail_level=0):
      """Get code inspection."""
      if cursor_pos is None:
          cursor_pos = len(code)
      content = dict(
          code=code,
          cursor_pos=cursor_pos,
          detail_level=detail_level,
      )
      msg = self.session.msg("inspect_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 11 for calling the InProcessKernelClient obj's underlying member method code with example usage: obj.inspect(code, cursor_pos, detail_level) and returns: msg