Streaming output truncated to the last 5000 lines.(google collab)

社会主义新天地 提交于 2020-08-10 01:06:50

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!