How to remove output from ipython notebook I?

Accidentally wrote a huge text output in laptop, now do not know how to edit SW. Text editors to crash, even a console. Cat just outputs, but how to edit? conclusion unfortunately somewhere in the middle of the script
July 2nd 19 at 17:24
2 answers
July 2nd 19 at 17:26
Solution
If you know any key words or designs in the beginning and end of the desired fragment, you can use "grep -n" to find their corresponding line numbers and using "head-n" and "tail-n" to cut the extra pieces from the beginning and the end. There will be only the desired fragment.

If you search for line numbers is difficult, but roughly know the location of the fragment (for example, in the middle Fula), you can use "dd skip=<offset> count=<size>" to take a bite of a piece of reasonable size with an approximate displacement, and this small piece of text editor to search for the necessary fragment.
July 2nd 19 at 17:28
vim
hangs - nikita.Farrell commented on July 2nd 19 at 17:31
: what's the file size? - marilyne_Roh commented on July 2nd 19 at 17:34
: 30 MB - nikita.Farrell commented on July 2nd 19 at 17:37
The laptop is weak?) - nikita.Farrell commented on July 2nd 19 at 17:40
: Vim begins to blunt after a few GB - marilyne_Roh commented on July 2nd 19 at 17:43

Find more questions by tags LinuxPython