##// END OF EJS Templates
Update interactive usage message (used by %quickref and others).
Fernando Perez -
Show More
@@ -258,8 +258,9 b' obj?, obj?? : Get help, or more help for object (also works as'
258 ?foo.*abc* : List names in 'foo' containing 'abc' in them.
258 ?foo.*abc* : List names in 'foo' containing 'abc' in them.
259 %magic : Information about IPython's 'magic' % functions.
259 %magic : Information about IPython's 'magic' % functions.
260
260
261 Magic functions are prefixed by %, and typically take their arguments without
261 Magic functions are prefixed by % or %%, and typically take their arguments
262 parentheses, quotes or even commas for convenience.
262 without parentheses, quotes or even commas for convenience. Line magics take a
263 single % and cell magics are prefixed with two %%.
263
264
264 Example magic function calls:
265 Example magic function calls:
265
266
@@ -268,6 +269,10 b" alias d ls -F : Works if 'alias' not a python name"
268 alist = %alias : Get list of aliases to 'alist'
269 alist = %alias : Get list of aliases to 'alist'
269 cd /usr/share : Obvious. cd -<tab> to choose from visited dirs.
270 cd /usr/share : Obvious. cd -<tab> to choose from visited dirs.
270 %cd?? : See help AND source for magic %cd
271 %cd?? : See help AND source for magic %cd
272 %timeit x=10 : time the 'x=10' statement with high precision.
273 %%timeit x=2**100
274 x**100 : time 'x*100' with a setup of 'x=2**100'; setup code is not
275 counted. This is an example of a cell magic.
271
276
272 System commands:
277 System commands:
273
278
General Comments 0
You need to be logged in to leave comments. Login now