title: How do I save the results of my TensorFlow 2 Model in Jupyter to a text file?
body: <p>This is the result I get after fitting my model in Tensorflow 2 on a jupyter notebook </p>
  
  <pre><code>Epoch 18/20
  7352/7352 [==============================] - 13s 2ms/sample - loss: 0.0184 - accuracy: 0.9954 - val_loss: 0.4653 - val_accuracy: 0.9094
  Epoch 19/20
  7352/7352 [==============================] - 12s 2ms/sample - loss: 0.0243 - accuracy: 0.9916 - val_loss: 0.6256 - val_accuracy: 0.8880
  Epoch 20/20
  7352/7352 [==============================] - 13s 2ms/sample - loss: 0.0699 - accuracy: 0.9845 - val_loss: 0.4982 - val_accuracy: 0.9023
  </code></pre>
  
  <p>Since I'll be running my jupyter notebook script from a remote server, I won't have access to it's GUI.
  Is there a way to programmatically save the results to a .txt file (Or any other like a spreadsheet?)</p>