##// END OF EJS Templates
Fixed bugs in IPython.kernel....
Fixed bugs in IPython.kernel. * Removed :mod:`IPython.kernel.contexts` and :mod:`IPython.kernel.tests.test_contexts` and all code that used them. This was broken and needed to be removed. Also Enthought has a nice decorator that does this. * Fixed broken tests in :file:`test_multienginefc.py` and :file:`test_taskfc.py`. See https://bugs.launchpad.net/ipython/+bug/505358. * Changed ports number in :mod:`IPython.kernel.tests` to 10111 to avoid conflicts with users who are using the older 10105 ports. See https://bugs.launchpad.net/ipython/+bug/504515. * Fixed logic and bugs in :mod:`IPython.kernel.fcutils` and :mod:`IPython.kernel.clientconnector` related to how FURL files are validated and found. See https://bugs.launchpad.net/ipython/+bug/502790. * Fixed the unhandled :class:`DeadReferenceError`` exception that was happening in :mod:`IPython.kernel.multiengineclient' and :mod:`IPython.kernel.taskclient` when the controller died or restarted. Now we capture that error and raises a :class:`IPython.kernel.error.ConnectionError` that has a better error message. See https://bugs.launchpad.net/ipython/+bug/502796.

File last commit:

r2267:928c921b
r2517:8185e15c
Show More
ipy_defaults.py
62 lines | 1.4 KiB | text/x-python | PythonLexer
""" Set default options for IPython.
Just import this module to get reasonable defaults for everything.
These configurations used to be performed in ipythonrc (or ipythonrc.ini).
Therefore importing this in your config files makes ipython basically
ignore your ipythonrc. This is *not* imported by default, you need to import
this manually in one of your config files.
You can further override these defaults in e.g. your ipy_user_config.py,
ipy_profile_PROFILENAME etc.
"""
import IPython.utils.rlineimpl as readline
from IPython.core import ipapi
ip = ipapi.get()
o = ip.options
o.colors = "Linux"
o.color_info=1
o.confirm_exit=1
o.pprint=1
o.multi_line_specials=1
o.xmode="Context"
o.prompt_in1='In [\#]: '
o.prompt_in2 =' .\D.: '
o.prompt_out = 'Out[\#]: '
o.prompts_pad_left=1
o.autoindent = 1
o.readline_remove_delims="-/~"
o.readline_merge_completions=1
o.readline = 1
rlopts = """\
tab: complete
"\C-l": possible-completions
set show-all-if-ambiguous on
"\C-o": tab-insert
"\M-i": " "
"\M-o": "\d\d\d\d"
"\M-I": "\d\d\d\d"
"\C-r": reverse-search-history
"\C-s": forward-search-history
"\C-p": history-search-backward
"\C-n": history-search-forward
"\e[A": history-search-backward
"\e[B": history-search-forward
"\C-k": kill-line
"\C-u": unix-line-discard"""
if readline.have_readline:
for cmd in rlopts.split('\n'):
readline.parse_and_bind(cmd)