MCPcopy Create free account
hub / github.com/ipython/ipython / load_subconfig

Method load_subconfig

IPython/core/application.py:90–100  ·  view source on GitHub ↗
(self, fname, path=None, profile=None)

Source from the content-addressed store, hash-verified

88class ProfileAwareConfigLoader(PyFileConfigLoader):
89 """A Python file config loader that is aware of IPython profiles."""
90 def load_subconfig(self, fname, path=None, profile=None):
91 if profile is not None:
92 try:
93 profile_dir = ProfileDir.find_profile_dir_by_name(
94 get_ipython_dir(),
95 profile,
96 )
97 except ProfileDirError:
98 return
99 path = profile_dir.location
100 return super(ProfileAwareConfigLoader, self).load_subconfig(fname, path=path)
101
102class BaseIPythonApplication(Application):
103

Callers

nothing calls this directly

Calls 2

get_ipython_dirFunction · 0.90

Tested by

no test coverage detected