Opened 12 years ago
Closed 7 months ago
#3434 closed enhancement (invalid)
notebook -- implementin MAX_OUTPUT handling in cell.py 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: |
Description
Try this in the notebook
@interact 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:
- Look at
self.interact = input[len('%__sage_interact__')+1]
in cell.py
- Factor out this code from cell.py:
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
- Type changed from defect to enhancement
comment:2 Changed 7 years ago by
- Milestone changed from sage-5.11 to sage-5.12
comment:3 Changed 7 years ago by
- Milestone changed from sage-6.1 to sage-6.2
comment:4 Changed 6 years ago by
- Milestone changed from sage-6.2 to sage-6.3
comment:5 Changed 6 years ago by
- Milestone changed from sage-6.3 to sage-6.4
comment:6 Changed 7 months ago by
- Report Upstream set to N/A
- Resolution set to invalid
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
Closing deprecated notebook tickets