Show More
@@ -133,8 +133,31 b' For example in the following snippet::' | |||||
133 | Calling ``bar()`` would raise an ``IndexError`` on the return line of ``foo``, |
|
133 | Calling ``bar()`` would raise an ``IndexError`` on the return line of ``foo``, | |
134 | IPython 8.0 is capable of telling you, where the index error occurs:: |
|
134 | IPython 8.0 is capable of telling you, where the index error occurs:: | |
135 |
|
135 | |||
136 | return x[0][i][0] |
|
136 | ||
137 | ^ |
|
137 | IndexError | |
|
138 | Input In [2], in <module> | |||
|
139 | ----> 1 bar() | |||
|
140 | ^^^^^ | |||
|
141 | ||||
|
142 | Input In [1], in bar() | |||
|
143 | 6 def bar(): | |||
|
144 | ----> 7 return foo(0) + foo( | |||
|
145 | ^^^^ | |||
|
146 | 8 1 | |||
|
147 | ^^^^^^^^ | |||
|
148 | 9 ) + foo(2) | |||
|
149 | ^^^^ | |||
|
150 | ||||
|
151 | Input In [1], in foo(i) | |||
|
152 | 1 def foo(i): | |||
|
153 | 2 x = [[[0]]] | |||
|
154 | ----> 3 return x[0][i][0] | |||
|
155 | ^^^^^^^ | |||
|
156 | ||||
|
157 | Corresponding location marked here with ``^`` will show up highlighted in | |||
|
158 | terminal and notebooks. | |||
|
159 | ||||
|
160 | ||||
138 | Autosuggestons |
|
161 | Autosuggestons | |
139 | ~~~~~~~~~~~~~~ |
|
162 | ~~~~~~~~~~~~~~ | |
140 |
|
163 | |||
@@ -180,7 +203,7 b' Importantly, this feature does not interfere with tab completion:' | |||||
180 |
|
203 | |||
181 | 1. After running ``def say_hello(): print("hello")``, press d |
|
204 | 1. After running ``def say_hello(): print("hello")``, press d | |
182 |
|
205 | |||
183 |
.. image:: ../_images/8.0/au |
|
206 | .. image:: ../_images/8.0/auto_suggest_d_phantom.png | |
184 |
|
207 | |||
185 | 2. Press Tab to start tab completion |
|
208 | 2. Press Tab to start tab completion | |
186 |
|
209 |
General Comments 0
You need to be logged in to leave comments.
Login now