code: def __init__(self, **kw):
      if kw.get("user_global_ns", None) is not None:
          raise DeprecationWarning(
              "Key word argument `user_global_ns` has been replaced by `user_module` since IPython 4.0."
          )
  
      clid = kw.pop("_init_location_id", None)
      if not clid:
          frame = sys._getframe(1)
          clid = "%s:%s" % (frame.f_code.co_filename, frame.f_lineno)
      self._init_location_id = clid
  
      super(InteractiveShellEmbed, self).__init__(**kw)
  
      # don't use the ipython crash handler so that user exceptions aren't
      # trapped
      sys.excepthook = ultratb.FormattedTB(
          color_scheme=self.colors, mode=self.xmode, call_pdb=self.pdb
      )
  
imports: from __future__ import with_statement
  from __future__ import print_function
  import sys
  import warnings
  from IPython.core import ultratb, compilerop
  from IPython.core import magic_arguments
  from IPython.core.magic import Magics, magics_class, line_magic
  from IPython.core.interactiveshell import DummyMod, InteractiveShell
  from IPython.terminal.interactiveshell import TerminalInteractiveShell
  from IPython.terminal.ipapp import load_default_config
  from traitlets import Bool, CBool, Unicode
  from IPython.utils.io import ask_yes_no
label_desc: Use image node_id 4 to create a new InteractiveShellEmbed object from inherited base classes: TerminalInteractiveShell with example: obj = InteractiveShellEmbed()