Sometimes a notebook code cell has very large, tens of thousands, of lines of text output (e.g. data frames, arrays, other data). If these are highlighted in diff, each line becomes a DOM entry on the page. Browsers cannot handle such large amount of DOMs & they crash. So user is unable to open the diff for that notebook.
Solution
We truncate large outputs. We show first & last 1000 lines with truncation message in the middle.
Problem
Sometimes a notebook code cell has very large, tens of thousands, of lines of text output (e.g. data frames, arrays, other data). If these are highlighted in diff, each line becomes a DOM entry on the page. Browsers cannot handle such large amount of DOMs & they crash. So user is unable to open the diff for that notebook.
Solution
We truncate large outputs. We show first & last 1000 lines with truncation message in the middle.