()
| 10 | |
| 11 | |
| 12 | def get_ipython(): |
| 13 | from .terminal.interactiveshell import TerminalInteractiveShell |
| 14 | if TerminalInteractiveShell._instance: |
| 15 | return TerminalInteractiveShell.instance() |
| 16 | |
| 17 | config = tools.default_config() |
| 18 | config.TerminalInteractiveShell.simple_prompt = True |
| 19 | |
| 20 | # Create and initialize our test-friendly IPython instance. |
| 21 | shell = TerminalInteractiveShell.instance(config=config) |
| 22 | return shell |
| 23 | |
| 24 | |
| 25 | @pytest.fixture(scope='session', autouse=True) |