docstr: Enable matplotlib integration for the kernel.
docstr_tok: ["Enable","matplotlib","integration","for","the","kernel","."]
code: def enable_matplotlib(self, gui=None):
      """Enable matplotlib integration for the kernel."""
      if not gui:
          gui = self.kernel.gui
      return super(InProcessInteractiveShell, self).enable_matplotlib(
          gui
      )
  
imports: from contextlib import contextmanager
  import logging
  import sys
  from IPython.core.interactiveshell import InteractiveShellABC
  from ipykernel.jsonutil import json_clean
  from traitlets import Any, Enum, Instance, List, Type, default
  from ipykernel.ipkernel import IPythonKernel
  from ipykernel.zmqshell import ZMQInteractiveShell
  from .constants import INPROCESS_KEY
  from .socket import DummySocket
  from ..iostream import OutStream, BackgroundSocket, IOPubThread
label_desc: Use image node_id 2 for calling the InProcessInteractiveShell obj's underlying member method code with example usage: obj.enable_matplotlib(gui) and returns: super