class_docstr: A Mixin for applications that start InteractiveShell instances.
  
  Provides configurables for loading extensions and executing files
  as part of configuring a Shell environment.
  
  The following methods should be called by the :meth:`initialize` method
  of the subclass:
  
    - :meth:`init_path`
    - :meth:`init_shell` (to be implemented by the subclass)
    - :meth:`init_gui_pylab`
    - :meth:`init_extensions`
    - :meth:`init_code`
class_docstr_tok: ["A","Mixin","for","applications","that","start","InteractiveShell","instances",".","Provides","configurables","for","loading","extensions","and","executing","files","as","part","of","configuring","a","Shell","environment",".","The","following","methods","should","be","called","by","the",":","meth",":","`","initialize","`","method","of","the","subclass",":","-",":","meth",":","`","init_path","`","-",":","meth",":","`","init_shell","`","(","to","be","implemented","by","the","subclass",")","-",":","meth",":","`","init_gui_pylab","`","-",":","meth",":","`","init_extensions","`","-",":","meth",":","`","init_code","`"]
docstr: run the pre-flight code, specified via exec_lines
docstr_tok: ["run","the","pre-flight","code",",","specified","via","exec_lines"]
code: def init_code(self):
      """run the pre-flight code, specified via exec_lines"""
      self._run_startup_files()
      self._run_exec_lines()
      self._run_exec_files()
  
      # Hide variables defined here from %who etc.
      if self.hide_initial_ns:
          self.shell.user_ns_hidden.update(self.shell.user_ns)
  
      # command-line execution (ipython -i script.py, ipython -m module)
      # should *not* be excluded from %whos
      self._run_cmd_line_code()
      self._run_module()
  
      # flush output, so itwon't be attached to the first cell
      sys.stdout.flush()
      sys.stderr.flush()
      self.shell._sys_modules_keys = set(sys.modules.keys())
  
imports: import glob
  from itertools import chain
  import os
  import sys
  from traitlets.config.application import boolean_flag
  from traitlets.config.configurable import Configurable
  from traitlets.config.loader import Config
  from IPython.core.application import SYSTEM_CONFIG_DIRS, ENV_CONFIG_DIRS
  from IPython.core import pylabtools
  from IPython.utils.contexts import preserve_keys
  from IPython.utils.path import filefind
  from traitlets import Unicode, Instance, List, Bool, CaselessStrEnum, observe, DottedObjectName
  from IPython.terminal import pt_inputhooks
label_desc: Use image node_id 6 for calling the InteractiveShellApp obj's underlying member method code with example usage: obj.init_code() without return types