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