Show More
@@ -0,0 +1,3 b'' | |||
|
1 | * In notebook, Showing tooltip on tab has been disables to avoid conflict with | |
|
2 | completion, Shift-Tab could still be used to invoke tooltip when inside | |
|
3 | function signature and/or on selection. |
@@ -209,12 +209,6 b' var IPython = (function (IPython) {' | |||
|
209 | 209 | // Don't autocomplete if the part of the line before the cursor |
|
210 | 210 | // is empty. In this case, let CodeMirror handle indentation. |
|
211 | 211 | return false; |
|
212 | } else if ((pre_cursor.substr(-1) === "("|| pre_cursor.substr(-1) === " ") && IPython.config.tooltip_on_tab ) { | |
|
213 | IPython.tooltip.request(that); | |
|
214 | // Prevent the event from bubbling up. | |
|
215 | event.stop(); | |
|
216 | // Prevent CodeMirror from handling the tab. | |
|
217 | return true; | |
|
218 | 212 | } else { |
|
219 | 213 | event.stop(); |
|
220 | 214 | this.completer.startCompletion(); |
@@ -67,7 +67,6 b' var IPython = (function (IPython) {' | |||
|
67 | 67 | 'diff' :{'reg':[/^diff/]} |
|
68 | 68 | }, |
|
69 | 69 | |
|
70 | tooltip_on_tab : true, | |
|
71 | 70 | }; |
|
72 | 71 | |
|
73 | 72 | // use the same method to merge user configuration |
@@ -234,7 +234,7 b'' | |||
|
234 | 234 | "cell_type": "markdown", |
|
235 | 235 | "metadata": {}, |
|
236 | 236 | "source": [ |
|
237 |
" |
|
|
237 | "Shift-Tab on selection, or after `(` brings up a tooltip with the docstring:" | |
|
238 | 238 | ] |
|
239 | 239 | }, |
|
240 | 240 | { |
@@ -436,4 +436,4 b'' | |||
|
436 | 436 | "metadata": {} |
|
437 | 437 | } |
|
438 | 438 | ] |
|
439 | } No newline at end of file | |
|
439 | } |
General Comments 0
You need to be logged in to leave comments.
Login now