bundles / traitlets latest / traitlets / config / loader / ArgParseConfigLoader / load_config
function
traitlets.config.loader:ArgParseConfigLoader.load_config
source: /traitlets/config/loader.py:866
Signature
def load_config(self, argv: list[str] | None = None, aliases: t.Any = None, flags: t.Any = <deprecated>, classes: t.Any = None) → ConfigSummary
Parse command line arguments and return as a Config object.
Parameters
argv: optional, listIf given, a list with the structure of sys.argv[1:] to parse arguments from. If not given, the instance's self.argv attribute (given at construction time) is used.
flagsDeprecated in traitlets 5.0, instantiate the config loader with the flags.
Aliases
traitlets.config.loader.ArgParseConfigLoader.load_config