4

I want to save variables and outputs in text file with colab!

Any bright idea?

mj.beyrami
  • 41
  • 1
  • 1
  • 2

1 Answers1

4

Save your content in the current directory and execute !dir to see the content. Then follow the following code snippet:

from google.colab import files
files.download('your typical text file or what ever.txt')

For more information take a look at here.

Green Falcon
  • 14,308
  • 10
  • 59
  • 98