start_ipython config backward
[email protected] Wed, 01 Feb 2017 11:03:53 +0100
| Newsgroups | gmane.comp.python.ipython.user |
|---|---|
| Message-ID | <[email protected]> |
Hello,
A while back (I can't remember which version of IPython I was using) I used the following code to launch IPython:
import IPython
config = IPython.config.loader.Config()
config.InteractiveShellApp.exec_lines = [
'import numpy as np',
'np.set_printoptions(linewidth=79)'
]
config.TerminalInteractiveShell.banner2 = 'Welcome!\n'
config.IPCompleter.limit_to__all__ = True
IPython.start_ipython(config=config)
but after updating to IPython 5.1.0 with Anaconda it doesn't work anymore:
config = IPython.config.loader.Config()
AttributeError: 'module' object has no attribute 'config'
How can I adapt my old code to the new API?
Thanks,
Hugo