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

Method init_config_files

IPython/core/profileapp.py:258–286  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

256 return app
257
258 def init_config_files(self):
259 super(ProfileCreate, self).init_config_files()
260 # use local imports, since these classes may import from here
261 from IPython.terminal.ipapp import TerminalIPythonApp
262 apps = [TerminalIPythonApp]
263 for app_path in (
264 'ipykernel.kernelapp.IPKernelApp',
265 ):
266 app = self._import_app(app_path)
267 if app is not None:
268 apps.append(app)
269 if self.parallel:
270 from ipyparallel.apps.ipcontrollerapp import IPControllerApp
271 from ipyparallel.apps.ipengineapp import IPEngineApp
272 from ipyparallel.apps.ipclusterapp import IPClusterStart
273 apps.extend([
274 IPControllerApp,
275 IPEngineApp,
276 IPClusterStart,
277 ])
278 for App in apps:
279 app = App()
280 app.config.update(self.config)
281 app.log = self.log
282 app.overwrite = self.overwrite
283 app.copy_config_files=True
284 app.ipython_dir=self.ipython_dir
285 app.profile_dir=self.profile_dir
286 app.init_config_files()
287
288 def stage_default_config_file(self):
289 pass

Callers

nothing calls this directly

Calls 2

_import_appMethod · 0.95
updateMethod · 0.45

Tested by

no test coverage detected