Python Jupyter Notebook can not open file, probably output too large

Viewed 1101

I work with big .csv files in python and I probably had too many prints during the data processing. Now I can not open the file (345 MB) any more. I get the error code "SBOX_FATAL_MEMORY_EXCEEDED" after a few seconds. Is there a way to delete the ouput somehow or a different workaround? It would be enough for me to copy my existing code but it breaks down that quickly that I can not even do this. Tell me if you need additional information.

Thanks

1 Answers

you can use nbconvert, run this code in a shell or command prompt

you may need to install with pip, but I believe it is included with jupyter

jupyter nbconvert my_input_notebook.ipynb --to notebook --ClearOutputPreprocessor.enabled=True --output my_output_notebook

source

Related