How do I set a Jupyter notebook's output back to the output cells after sending its output to a file?
Sending its output to a file:
sys.stdout = open(filename, 'w') print "stuff" Sending its output back to the output cells:
sys.stdout = ? print "hopefully this is in an output cell now"