问题
so as the title suggests the google collab output is being truncated. I've looked through the settings and I didn't see a limitation there. What is the best option to solve the problem?
回答1:
I had the same problem and managed it by writing the output on a file on drive:
from google.colab import drive
drive.mount('/content/drive')
import os
os.chdir("/content/drive/")
with open('/content/drive/output.txt','w') as out:
out.write(' abcd \n')
来源:https://stackoverflow.com/questions/60721458/streaming-output-truncated-to-the-last-5000-lines-google-collab