Show More
@@ -172,9 +172,8 b' Main features of the interactive shell' | |||
|
172 | 172 | |
|
173 | 173 | .. sourcecode:: ipython |
|
174 | 174 | |
|
175 |
In [ |
|
|
175 | In [1]: %timeit 1+1 | |
|
176 | 176 | 10000000 loops, best of 3: 25.5 ns per loop |
|
177 | .. _sourcecode: | |
|
178 | 177 | |
|
179 | 178 | In [2]: %timeit [math.sin(x) for x in range(5000)] |
|
180 | 179 | 1000 loops, best of 3: 719 µs per loop |
@@ -186,9 +185,10 b' Main features of the interactive shell' | |||
|
186 | 185 | |
|
187 | 186 | |
|
188 | 187 | * Doctest support. The special :samp:`%doctest_mode` command toggles a mode |
|
189 |
use |
|
|
190 |
code |
|
|
191 |
leading :samp:`>>>` |
|
|
188 | to use doctest-compatible prompts, so you can use IPython sessions as | |
|
189 | doctest code. By default, IPython also allows you to paste existing | |
|
190 | doctests, and strips out the leading :samp:`>>>` and :samp:`...` prompts in | |
|
191 | them. | |
|
192 | 192 | |
|
193 | 193 | .. _ipythonzmq: |
|
194 | 194 |
General Comments 0
You need to be logged in to leave comments.
Login now