Show More
@@ -6,7 +6,7 b'' | |||||
6 | # the file COPYING, distributed as part of this software. |
|
6 | # the file COPYING, distributed as part of this software. | |
7 | #***************************************************************************** |
|
7 | #***************************************************************************** | |
8 |
|
8 | |||
9 |
# $Id: usage.py 1 |
|
9 | # $Id: usage.py 1177 2006-02-24 16:40:24Z vivainio $ | |
10 |
|
10 | |||
11 | from IPython import Release |
|
11 | from IPython import Release | |
12 | __author__ = '%s <%s>' % Release.authors['Fernando'] |
|
12 | __author__ = '%s <%s>' % Release.authors['Fernando'] | |
@@ -614,9 +614,9 b" alist = %alias : Get list of aliases to 'alist'" | |||||
614 | System commands: |
|
614 | System commands: | |
615 |
|
615 | |||
616 | !cp a.txt b/ : System command escape, calls os.system() |
|
616 | !cp a.txt b/ : System command escape, calls os.system() | |
617 | cp a.txt b/ : after %rehash, most system commands work without ! |
|
617 | cp a.txt b/ : after %rehashx, most system commands work without ! | |
618 | cp ${f}.txt $bar : Variable expansion in magics and system commands |
|
618 | cp ${f}.txt $bar : Variable expansion in magics and system commands | |
619 |
files = ls /usr |
|
619 | files = !ls /usr : Capture sytem command output | |
620 | files.s, files.l, files.n: "a b c", ['a','b','c'], 'a\nb\nc' |
|
620 | files.s, files.l, files.n: "a b c", ['a','b','c'], 'a\nb\nc' | |
621 | cd /usr/share : Obvious, also 'cd d:\home\_ipython' works |
|
621 | cd /usr/share : Obvious, also 'cd d:\home\_ipython' works | |
622 |
|
622 | |||
@@ -631,7 +631,8 b' _oh : Output history' | |||||
631 |
|
631 | |||
632 | Autocall: |
|
632 | Autocall: | |
633 |
|
633 | |||
634 |
f 1 |
|
634 | f 1,2 : f(1,2) | |
|
635 | /f 1,2 : f(1,2) (forced autoparen) | |||
635 | ,f 1 2 : f("1","2") |
|
636 | ,f 1 2 : f("1","2") | |
636 | ;f 1 2 : f("1 2") |
|
637 | ;f 1 2 : f("1 2") | |
637 |
|
638 |
General Comments 0
You need to be logged in to leave comments.
Login now