class_docstr: Base class for Jupyter applications
class_docstr_tok: ["Base","class","for","Jupyter","applications"]
docstr: Load the config file.
  
  By default, errors in loading config are handled, and a warning
  printed on screen. For testing, the suppress_errors option is set
  to False, so errors will make tests fail.
docstr_tok: ["Load","the","config","file",".","By","default",",","errors","in","loading","config","are","handled",",","and","a","warning","printed","on","screen",".","For","testing",",","the","suppress_errors","option","is","set","to","False",",","so","errors","will","make","tests","fail","."]
code: def load_config_file(
      self, suppress_errors: bool = True
  ) -> None:  # type:ignore[override]
      """Load the config file.
  
      By default, errors in loading config are handled, and a warning
      printed on screen. For testing, the suppress_errors option is set
      to False, so errors will make tests fail.
      """
      self.log.debug(
          "Searching %s for config files", self.config_file_paths
      )
      base_config = "jupyter_config"
      try:
          super().load_config_file(
              base_config,
              path=self.config_file_paths,
          )
      except ConfigFileNotFound:
          # ignore errors loading parent
          self.log.debug("Config file %s not found", base_config)
  
      if self.config_file:
          path, config_file_name = os.path.split(self.config_file)
      else:
          path = self.config_file_paths  # type:ignore[assignment]
          config_file_name = self.config_file_name
  
          if not config_file_name or (config_file_name == base_config):
              return
  
      try:
          super().load_config_file(config_file_name, path=path)
      except ConfigFileNotFound:
          self.log.debug(
              "Config file not found, skipping: %s", config_file_name
          )
      except Exception:
          # Reraise errors for testing purposes, or if set in
          # self.raise_config_file_errors
          if (not suppress_errors) or self.raise_config_file_errors:
              raise
          self.log.warning(
              "Error loading config file: %s",
              config_file_name,
              exc_info=True,
          )
  
imports: from __future__ import annotations
  import logging
  import os
  import sys
  import typing
  from copy import deepcopy
  from pathlib import Path
  from shutil import which
  from traitlets import Bool, List, Unicode, observe
  from traitlets.config.application import Application, catch_config_error
  from traitlets.config.loader import ConfigFileNotFound
  from .paths import allow_insecure_writes, issue_insecure_write_warning, jupyter_config_dir, jupyter_config_path, jupyter_data_dir, jupyter_path, jupyter_runtime_dir
  from .utils import ensure_dir_exists
label_desc: Use image node_id 11 for calling the JupyterApp obj's underlying member method code with example usage: obj.load_config_file(suppress_errors) without return types