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

Function default_config

IPython/testing/tools.py:131–141  ·  view source on GitHub ↗

Return a config object with good defaults for testing.

()

Source from the content-addressed store, hash-verified

129
130
131def default_config() -> Config:
132 """Return a config object with good defaults for testing."""
133 config = Config()
134 config.TerminalInteractiveShell.colors = "nocolor"
135 config.TerminalTerminalInteractiveShell.term_title = (False,)
136 config.TerminalInteractiveShell.autocall = 0
137 f = tempfile.NamedTemporaryFile(suffix="test_hist.sqlite", delete=False)
138 config.HistoryManager.hist_file = Path(f.name)
139 f.close()
140 config.HistoryManager.db_cache_size = 10000
141 return config
142
143
144def get_ipython_cmd(as_string: bool=False) -> List[str]:

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…