##// END OF EJS Templates
One more getters fix...
fperez -
Show More
@@ -1,60 +1,59 b''
1 1 """ Set default options for IPython.
2 2
3 3 Just import this module to get reasonable defaults for everything.
4 4
5 5 These configurations used to be performed in ipythonrc (or ipythonrc.ini).
6 6 Therefore importing this in your config files makes ipython basically
7 7 ignore your ipythonrc. This is *not* imported by default, you need to import
8 8 this manually in one of your config files.
9 9
10 10 You can further override these defaults in e.g. your ipy_user_config.py,
11 11 ipy_profile_PROFILENAME etc.
12 12
13 13 """
14 14
15 15 import IPython.rlineimpl as readline
16 16 import IPython.ipapi
17 17 ip = IPython.ipapi.get()
18 18
19 o = ip.options()
20
19 o = ip.options
21 20
22 21 o.colors = "Linux"
23 22 o.color_info=1
24 23 o.confirm_exit=1
25 24 o.pprint=1
26 25 o.multi_line_specials=1
27 26 o.xmode="Context"
28 27
29 28
30 29 o.prompt_in1='In [\#]: '
31 30 o.prompt_in2 =' .\D.: '
32 31 o.prompt_out = 'Out[\#]: '
33 32 o.prompts_pad_left=1
34 33
35 34 o.readline_remove_delims="-/~"
36 35 o.readline_merge_completions=1
37 36
38 37 o.readline = 1
39 38
40 39 rlopts = """\
41 40 tab: complete
42 41 "\C-l": possible-completions
43 42 set show-all-if-ambiguous on
44 43 "\C-o": tab-insert
45 44 "\M-i": " "
46 45 "\M-o": "\d\d\d\d"
47 46 "\M-I": "\d\d\d\d"
48 47 "\C-r": reverse-search-history
49 48 "\C-s": forward-search-history
50 49 "\C-p": history-search-backward
51 50 "\C-n": history-search-forward
52 51 "\e[A": history-search-backward
53 52 "\e[B": history-search-forward
54 53 "\C-k": kill-line
55 54 "\C-u": unix-line-discard"""
56 55
57 56 for cmd in rlopts.split('\n'):
58 57 readline.parse_and_bind(cmd)
59 58
60 59
General Comments 0
You need to be logged in to leave comments. Login now