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

Function load_default_config

IPython/terminal/ipapp.py:332–344  ·  view source on GitHub ↗

Load the default config file from the default ipython_dir. This is useful for embedded shells.

(ipython_dir=None)

Source from the content-addressed store, hash-verified

330 sys.exit(1)
331
332def load_default_config(ipython_dir=None):
333 """Load the default config file from the default ipython_dir.
334
335 This is useful for embedded shells.
336 """
337 if ipython_dir is None:
338 ipython_dir = get_ipython_dir()
339
340 profile_dir = os.path.join(ipython_dir, 'profile_default')
341 app = TerminalIPythonApp()
342 app.config_file_paths.append(profile_dir)
343 app.load_config_file()
344 return app.config
345
346launch_new_instance = TerminalIPythonApp.launch_instance

Callers 1

embedFunction · 0.90

Calls 3

get_ipython_dirFunction · 0.90
TerminalIPythonAppClass · 0.85
load_config_fileMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…