parameters: (self)
docstring: start function used when show_config is True
docstring_summary: start function used when show_config is True
docstring_tokens: start function used when show_config is True
function: def start_show_config(self):
          """start function used when show_config is True"""
          config = self.config.copy()
          # exclude show_config flags from displayed config
          for cls in self.__class__.mro():
              if cls.__name__ in config:
                  cls_config = config[cls.__name__]
                  cls_config.pop('show_config', None)
                  cls_config.pop('show_config_json', None)
  
          if self.show_config_json:
              json.dump(config, sys.stdout,
                        indent=1, sort_keys=True, default=repr)
              # add trailing newline
              sys.stdout.write('\n')
              return
  
          if self._loaded_config_files:
              print("Loaded config files:")
              for f in self._loaded_config_files:
                  print('  ' + f)
              print()
  
          for classname in sorted(config):
              class_config = config[classname]
              if not class_config:
                  continue
              print(classname)
              pformat_kwargs = dict(indent=4, compact=True)
  
              for traitname in sorted(class_config):
                  value = class_config[traitname]
                  print('  .{} = {}'.format(
                      traitname,
                      pprint.pformat(value, **pformat_kwargs),
                  ))
function_tokens: def start_show_config ( self ) : config = self . config . copy ( ) # exclude show_config flags from displayed config for cls in self . __class__ . mro ( ) : if cls . __name__ in config : cls_config = config [ cls . __name__ ] cls_config . pop ( 'show_config' , None ) cls_config . pop ( 'show_config_json' , None ) if self . show_config_json : json . dump ( config , sys . stdout , indent = 1 , sort_keys = True , default = repr ) # add trailing newline sys . stdout . write ( '\n' ) return if self . _loaded_config_files : print ( "Loaded config files:" ) for f in self . _loaded_config_files : print ( '  ' + f ) print ( ) for classname in sorted ( config ) : class_config = config [ classname ] if not class_config : continue print ( classname ) pformat_kwargs = dict ( indent = 4 , compact = True ) for traitname in sorted ( class_config ) : value = class_config [ traitname ] print ( '  .{} = {}' . format ( traitname , pprint . pformat ( value , * * pformat_kwargs ) , ) )