Changes between Version 2 and Version 3 of Ticket #22968


Ignore:
Timestamp:
06/06/18 05:31:18 (17 months ago)
Author:
slelievre
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22968

    • Property Cc chapoton slelievre added
    • Property Keywords pprint added
  • Ticket #22968 – Description

    v2 v3  
    1 From the ipython shell launched from Sage (with `Sage -ipython`) we can switch off pretty print as follows:
     1From the IPython REPL launched from Sage (with `Sage -ipython`) we can switch off pretty print as follows:
    22
    33{{{
    4 In [1]: [1]*27
     4In [1]: [12345678901234]*5
    55Out[1]:
    6 [1,
    7  1,
    8  1,
    9  1,
    10  1,
    11  1,
    12  1,
    13  1,
    14  1,
    15  1,
    16  1,
    17  1,
    18  1,
    19  1,
    20  1,
    21  1,
    22  1,
    23  1,
    24  1,
    25  1,
    26  1,
    27  1,
    28  1,
    29  1,
    30  1,
    31  1,
    32  1]
     6[12345678901234,
     7 12345678901234,
     8 12345678901234,
     9 12345678901234,
     10 12345678901234]
    3311
    3412In [2]: %pprint
    3513Pretty printing has been turned OFF
    3614
    37 In [3]: [1]*27
    38 Out[3]: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
     15In [3]: [12345678901234]*5
     16Out[3]: [12345678901234, 12345678901234, 12345678901234, 12345678901234, 12345678901234]
    3917}}}
    4018
     
    4220
    4321{{{
    44 sage: [1]*27
    45 
    46 [1,
    47  1,
    48  1,
    49  1,
    50  1,
    51  1,
    52  1,
    53  1,
    54  1,
    55  1,
    56  1,
    57  1,
    58  1,
    59  1,
    60  1,
    61  1,
    62  1,
    63  1,
    64  1,
    65  1,
    66  1,
    67  1,
    68  1,
    69  1,
    70  1,
    71  1,
    72  1]
     22sage: [12345678901234]*5
     23[12345678901234,
     24 12345678901234,
     25 12345678901234,
     26 12345678901234,
     27 12345678901234]
    7328sage: %pprint
    7429Pretty printing has been turned OFF
    75 sage: [1]*27
    76 
    77 [1,
    78  1,
    79  1,
    80  1,
    81  1,
    82  1,
    83  1,
    84  1,
    85  1,
    86  1,
    87  1,
    88  1,
    89  1,
    90  1,
    91  1,
    92  1,
    93  1,
    94  1,
    95  1,
    96  1,
    97  1,
    98  1,
    99  1,
    100  1,
    101  1,
    102  1,
    103  1]
     30sage: [12345678901234]*5
     31[12345678901234,
     32 12345678901234,
     33 12345678901234,
     34 12345678901234,
     35 12345678901234]
    10436}}}
    10537
    10638Does this come from a broken interaction with our own pretty printing features ?
    10739
    108 This was reported on [https://ask.sagemath.org/question/37477/if-i-return-a-list-from-a-function-that-is-more-than-26-elements-the-list-goes-vertical/ this ask question].
     40This was reported on Ask Sage twice:
     41
     42- [Ask Sage question #37477: long list goes vertical](https://ask.sagemath.org/question/37477/)
     43- [Ask Sage question #42509: unexpected behaviour of the interface](https://ask.sagemath.org/question/42509/)