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

Function load_default_config

IPython/terminal/ipapp.py:362–374  ·  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

360 sys.exit(1)
361
362def load_default_config(ipython_dir=None):
363 """Load the default config file from the default ipython_dir.
364
365 This is useful for embedded shells.
366 """
367 if ipython_dir is None:
368 ipython_dir = get_ipython_dir()
369
370 profile_dir = os.path.join(ipython_dir, 'profile_default')
371 app = TerminalIPythonApp()
372 app.config_file_paths.append(profile_dir)
373 app.load_config_file()
374 return app.config
375
376launch_new_instance = TerminalIPythonApp.launch_instance
377

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