Show More
@@ -509,10 +509,12 b' class AutocallChecker(PrefilterChecker):' | |||
|
509 | 509 | |
|
510 | 510 | priority = Integer(1000).tag(config=True) |
|
511 | 511 | |
|
512 |
function_name_regexp = CRegExp(re_fun_name |
|
|
513 |
help="RegExp to identify potential function names." |
|
|
514 | exclude_regexp = CRegExp(re_exclude_auto).tag(config=True, | |
|
515 | help="RegExp to exclude strings with this start from autocalling.") | |
|
512 | function_name_regexp = CRegExp(re_fun_name, | |
|
513 | help="RegExp to identify potential function names." | |
|
514 | ).tag(config=True) | |
|
515 | exclude_regexp = CRegExp(re_exclude_auto, | |
|
516 | help="RegExp to exclude strings with this start from autocalling." | |
|
517 | ).tag(config=True) | |
|
516 | 518 | |
|
517 | 519 | def check(self, line_info): |
|
518 | 520 | "Check if the initial word/function is callable and autocall is on." |
@@ -91,8 +91,9 b' class IPythonPTLexer(Lexer):' | |||
|
91 | 91 | class TerminalInteractiveShell(InteractiveShell): |
|
92 | 92 | colors_force = True |
|
93 | 93 | |
|
94 |
space_for_menu = Integer(6 |
|
|
95 |
'to reserve for the completion menu' |
|
|
94 | space_for_menu = Integer(6, help='Number of line at the bottom of the screen ' | |
|
95 | 'to reserve for the completion menu' | |
|
96 | ).tag(config=True) | |
|
96 | 97 | |
|
97 | 98 | def _space_for_menu_changed(self, old, new): |
|
98 | 99 | self._update_layout() |
@@ -108,36 +109,36 b' class TerminalInteractiveShell(InteractiveShell):' | |||
|
108 | 109 | in Unix, Control-Z/Enter in Windows). By typing 'exit' or 'quit', |
|
109 | 110 | you can force a direct exit without any confirmation.""", |
|
110 | 111 | ) |
|
111 |
editing_mode = Unicode('emacs' |
|
|
112 | editing_mode = Unicode('emacs', | |
|
112 | 113 | help="Shortcut style to use at the prompt. 'vi' or 'emacs'.", |
|
113 | ) | |
|
114 | ).tag(config=True) | |
|
114 | 115 | |
|
115 |
mouse_support = Bool(False |
|
|
116 | mouse_support = Bool(False, | |
|
116 | 117 | help="Enable mouse support in the prompt" |
|
117 | ) | |
|
118 | ).tag(config=True) | |
|
118 | 119 | |
|
119 |
highlighting_style = Unicode('default' |
|
|
120 | highlighting_style = Unicode('default', | |
|
120 | 121 | help="The name of a Pygments style to use for syntax highlighting: \n %s" % ', '.join(get_all_styles()) |
|
121 | ) | |
|
122 | ).tag(config=True) | |
|
122 | 123 | |
|
123 | 124 | def _highlighting_style_changed(self, old, new): |
|
124 | 125 | self._style = self._make_style_from_name(self.highlighting_style) |
|
125 | 126 | |
|
126 |
highlighting_style_overrides = Dict( |
|
|
127 | highlighting_style_overrides = Dict( | |
|
127 | 128 | help="Override highlighting format for specific tokens" |
|
128 | ) | |
|
129 | ).tag(config=True) | |
|
129 | 130 | |
|
130 |
editor = Unicode(get_default_editor() |
|
|
131 | editor = Unicode(get_default_editor(), | |
|
131 | 132 | help="Set the editor used by IPython (default to $EDITOR/vi/notepad)." |
|
132 | ) | |
|
133 | ).tag(config=True) | |
|
133 | 134 | |
|
134 |
term_title = Bool(True |
|
|
135 | term_title = Bool(True, | |
|
135 | 136 | help="Automatically set the terminal title" |
|
136 | ) | |
|
137 | ).tag(config=True) | |
|
137 | 138 | |
|
138 |
display_completions_in_columns = Bool(False |
|
|
139 | display_completions_in_columns = Bool(False, | |
|
139 | 140 | help="Display a multi column completion menu.", |
|
140 | ) | |
|
141 | ).tag(config=True) | |
|
141 | 142 | |
|
142 | 143 | @observe('term_title') |
|
143 | 144 | def _term_title_changed(self, change): |
General Comments 0
You need to be logged in to leave comments.
Login now