ReviewNB / support

Issues and feature requests for ReviewNB
https://reviewnb.com
58 stars 8 forks source link

Truncate large outputs that are crashing browsers #115

Closed amit1rrr closed 1 year ago

amit1rrr commented 1 year ago

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.

Screenshot 2022-09-21 at 7 06 21 PM

Screenshot 2022-09-21 at 7 06 02 PM