class_docstr: An in-process interactive shell.
docstr: Enable GUI integration for the kernel.
docstr_tok: ["Enable","GUI","integration","for","the","kernel","."]
code: def enable_gui(self, gui=None):
      """Enable GUI integration for the kernel."""
      if not gui:
          gui = self.kernel.gui
      self.active_eventloop = gui
  
imports: import logging
  import sys
  from contextlib import contextmanager
  from IPython.core.interactiveshell import InteractiveShellABC
  from traitlets import Any, Enum, Instance, List, Type, default
  from ipykernel.ipkernel import IPythonKernel
  from ipykernel.jsonutil import json_clean
  from ipykernel.zmqshell import ZMQInteractiveShell
  from ..iostream import BackgroundSocket, IOPubThread, OutStream
  from .constants import INPROCESS_KEY
  from .socket import DummySocket
label_desc: Use image node_id 1 for calling the InProcessInteractiveShell obj's underlying member method code with example usage: obj.enable_gui(gui) without return types