MCPcopy Create free account
hub / github.com/ipython/traitlets / get_config

Function get_config

traitlets/config/application.py:1124–1132  ·  view source on GitHub ↗

Get the config object for the global Application instance, if there is one otherwise return an empty config object

()

Source from the content-addressed store, hash-verified

1122
1123
1124def get_config() -> Config:
1125 """Get the config object for the global Application instance, if there is one
1126
1127 otherwise return an empty config object
1128 """
1129 if Application.initialized():
1130 return Application.instance().config
1131 else:
1132 return Config()
1133
1134
1135if __name__ == "__main__":

Callers 2

base_config.pyFile · 0.85
main_config.pyFile · 0.85

Calls 3

ConfigClass · 0.90
initializedMethod · 0.80
instanceMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…