docstr: Activate the interactive interpreter.
  
  __call__(self,header='',local_ns=None,module=None,dummy=None) -> Start
  the interpreter shell with the given local and global namespaces, and
  optionally print a header string at startup.
  
  The shell can be globally activated/deactivated using the
  dummy_mode attribute. This allows you to turn off a shell used
  for debugging globally.
  
  However, *each* time you call the shell you can override the current
  state of dummy_mode with the optional keyword parameter 'dummy'. For
  example, if you set dummy mode on with IPShell.dummy_mode = True, you
  can still have a specific call work by making it as IPShell(dummy=False).
docstr_tok: ["Activate","the","interactive","interpreter",".","__call__","(","self",",","header=","''",",","local_ns=None",",","module=None",",","dummy=None",")","-",">","Start","the","interpreter","shell","with","the","given","local","and","global","namespaces",",","and","optionally","print","a","header","string","at","startup",".","The","shell","can","be","globally","activated\/deactivated","using","the","dummy_mode","attribute",".","This","allows","you","to","turn","off","a","shell","used","for","debugging","globally",".","However",",","*","each","*","time","you","call","the","shell","you","can","override","the","current","state","of","dummy_mode","with","the","optional","keyword","parameter","'dummy","'",".","For","example",",","if","you","set","dummy","mode","on","with","IPShell.dummy_mode","=","True",",","you","can","still","have","a","specific","call","work","by","making","it","as","IPShell","(","dummy=False",")","."]
code: def __call__(
      self,
      header="",
      local_ns=None,
      module=None,
      dummy=None,
      stack_depth=1,
      global_ns=None,
      compile_flags=None,
      **kw,
  ):
      """Activate the interactive interpreter.
  
      __call__(self,header='',local_ns=None,module=None,dummy=None) -> Start
      the interpreter shell with the given local and global namespaces, and
      optionally print a header string at startup.
  
      The shell can be globally activated/deactivated using the
      dummy_mode attribute. This allows you to turn off a shell used
      for debugging globally.
  
      However, *each* time you call the shell you can override the current
      state of dummy_mode with the optional keyword parameter 'dummy'. For
      example, if you set dummy mode on with IPShell.dummy_mode = True, you
      can still have a specific call work by making it as IPShell(dummy=False).
      """
  
      # we are called, set the underlying interactiveshell not to exit.
      self.keep_running = True
  
      # If the user has turned it off, go away
      clid = kw.pop("_call_location_id", None)
      if not clid:
          frame = sys._getframe(1)
          clid = "%s:%s" % (frame.f_code.co_filename, frame.f_lineno)
      self._call_location_id = clid
  
      if not self.embedded_active:
          return
  
      # Normal exits from interactive mode set this flag, so the shell can't
      # re-enter (it checks this variable at the start of interactive mode).
      self.exit_now = False
  
      # Allow the dummy parameter to override the global __dummy_mode
      if dummy or (dummy != 0 and self.dummy_mode):
          return
  
      # self.banner is auto computed
      if header:
          self.old_banner2 = self.banner2
          self.banner2 = self.banner2 + "\n" + header + "\n"
      else:
          self.old_banner2 = ""
  
      if self.display_banner:
          self.show_banner()
  
      # Call the embedding code with a stack depth of 1 so it can skip over
      # our call and get the original caller's namespaces.
      self.mainloop(
          local_ns,
          module,
          stack_depth=stack_depth,
          global_ns=global_ns,
          compile_flags=compile_flags,
      )
  
      self.banner2 = self.old_banner2
  
      if self.exit_msg is not None:
          print(self.exit_msg)
  
      if self.should_raise:
          raise KillEmbeded(
              "Embedded IPython raising error, as user requested."
          )
  
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 7 for calling the InteractiveShellEmbed obj's underlying member method code with example usage: obj.__call__(header, local_ns, module, dummy, stack_depth, global_ns, compile_flags) without return types