Opened 12 years ago

Closed 7 months ago

#3434 closed enhancement (invalid)

notebook -- implementin MAX_OUTPUT handling in for interact.

Reported by: was Owned by: boothby
Priority: major Milestone: sage-6.4
Component: notebook Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:


Try this in the notebook

def test(a=1):
    print 2^a

For large a it outputs something massive and very very bad. This should not be aloud.

To fix this:

  1. Look at
                self.interact = input[len('%__sage_interact__')+1]


  1. Factor out this code from
            if 'notruncate' not in output and 'Output truncated!' not in output and \
                  (len(output) > MAX_OUTPUT or output.count('\n') > MAX_OUTPUT_LINES) and \

Change History (6)

comment:1 Changed 12 years ago by AlexGhitza

  • Type changed from defect to enhancement

comment:2 Changed 7 years ago by jdemeyer

  • Milestone changed from sage-5.11 to sage-5.12

comment:3 Changed 7 years ago by vbraun_spam

  • Milestone changed from sage-6.1 to sage-6.2

comment:4 Changed 6 years ago by vbraun_spam

  • Milestone changed from sage-6.2 to sage-6.3

comment:5 Changed 6 years ago by vbraun_spam

  • Milestone changed from sage-6.3 to sage-6.4

comment:6 Changed 7 months ago by boothby

  • Report Upstream set to N/A
  • Resolution set to invalid
  • Status changed from new to closed

Closing deprecated notebook tickets

Note: See TracTickets for help on using tickets.