Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

write cell output to file jupyter colab

%%capture cap --no-stderr
print_something()

with open('/path/to/capture.txt') as f:
    f.write(cap.stdout)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #write #cell #output #file #jupyter #colab
ADD COMMENT
Topic
Name
6+7 =