Show More
@@ -122,7 +122,7 b' class BasicMagics(Magics):' | |||||
122 | Created `%whereami` as an alias for `%pwd`. |
|
122 | Created `%whereami` as an alias for `%pwd`. | |
123 |
|
123 | |||
124 | In [6]: %whereami |
|
124 | In [6]: %whereami | |
125 |
Out[6]: |
|
125 | Out[6]: '/home/testuser' | |
126 |
|
126 | |||
127 | In [7]: %alias_magic h history "-p -l 30" --line |
|
127 | In [7]: %alias_magic h history "-p -l 30" --line | |
128 | Created `%h` as an alias for `%history -l 30`. |
|
128 | Created `%h` as an alias for `%history -l 30`. | |
@@ -537,25 +537,25 b' Currently the magic system has the following functions:""",' | |||||
537 | In [1]: from math import pi |
|
537 | In [1]: from math import pi | |
538 |
|
538 | |||
539 | In [2]: %precision 3 |
|
539 | In [2]: %precision 3 | |
540 |
Out[2]: |
|
540 | Out[2]: '%.3f' | |
541 |
|
541 | |||
542 | In [3]: pi |
|
542 | In [3]: pi | |
543 | Out[3]: 3.142 |
|
543 | Out[3]: 3.142 | |
544 |
|
544 | |||
545 | In [4]: %precision %i |
|
545 | In [4]: %precision %i | |
546 |
Out[4]: |
|
546 | Out[4]: '%i' | |
547 |
|
547 | |||
548 | In [5]: pi |
|
548 | In [5]: pi | |
549 | Out[5]: 3 |
|
549 | Out[5]: 3 | |
550 |
|
550 | |||
551 | In [6]: %precision %e |
|
551 | In [6]: %precision %e | |
552 |
Out[6]: |
|
552 | Out[6]: '%e' | |
553 |
|
553 | |||
554 | In [7]: pi**10 |
|
554 | In [7]: pi**10 | |
555 | Out[7]: 9.364805e+04 |
|
555 | Out[7]: 9.364805e+04 | |
556 |
|
556 | |||
557 | In [8]: %precision |
|
557 | In [8]: %precision | |
558 |
Out[8]: |
|
558 | Out[8]: '%r' | |
559 |
|
559 | |||
560 | In [9]: pi**10 |
|
560 | In [9]: pi**10 | |
561 | Out[9]: 93648.047476082982 |
|
561 | Out[9]: 93648.047476082982 |
General Comments 0
You need to be logged in to leave comments.
Login now