MCPcopy Index your code
hub / github.com/ipython/ipython / load_subconfig

Method load_subconfig

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

Source from the content-addressed store, hash-verified

112class ProfileAwareConfigLoader(PyFileConfigLoader):
113 """A Python file config loader that is aware of IPython profiles."""
114 def load_subconfig(self, fname, path=None, profile=None):
115 if profile is not None:
116 try:
117 profile_dir = ProfileDir.find_profile_dir_by_name(
118 get_ipython_dir(),
119 profile,
120 )
121 except ProfileDirError:
122 return
123 path = profile_dir.location
124 return super(ProfileAwareConfigLoader, self).load_subconfig(fname, path=path)
125
126class BaseIPythonApplication(Application):
127 name = "ipython"

Callers

nothing calls this directly

Calls 2

get_ipython_dirFunction · 0.90

Tested by

no test coverage detected