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

Function default_config

IPython/testing/tools.py:138–148  ·  view source on GitHub ↗

Return a config object with good defaults for testing.

()

Source from the content-addressed store, hash-verified

136
137
138def default_config():
139 """Return a config object with good defaults for testing."""
140 config = Config()
141 config.TerminalInteractiveShell.colors = 'NoColor'
142 config.TerminalTerminalInteractiveShell.term_title = False,
143 config.TerminalInteractiveShell.autocall = 0
144 f = tempfile.NamedTemporaryFile(suffix=u'test_hist.sqlite', delete=False)
145 config.HistoryManager.hist_file = f.name
146 f.close()
147 config.HistoryManager.db_cache_size = 10000
148 return config
149
150
151def get_ipython_cmd(as_string=False):

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected