【问题标题】:Saving Google Colab Notebook on Github在 Github 上保存 Google Colab Notebook
【发布时间】:2018-07-25 06:02:14
【问题描述】:

Checkpoints in Google Colab

在上述问题的一个答案中,提到要在 Google Colab 中保存检查点,我们应该将 notebbok 推送到 GitHub。我怀疑推送到 Github 是否会保存在 Google Colab Notebook 的 VM 环境中创建的所有文件。如果不是,请提出替代解决方案。提前致谢

【问题讨论】:

    标签: jupyter-notebook google-colaboratory


    【解决方案1】:

    VM 环境中的文件不会保存到 Github。为了保存特定文件,您需要编写一个脚本以通过以下方式将它们保存到本地计算机:

    https://gist.github.com/korakot/e7f04fa7bd3a8a67b729da279ab1713a

    或者您可以使用 Colab Drive 集成保存文件:

    https://datascience.stackexchange.com/questions/27964/how-to-download-dynamic-files-created-during-work-on-google-colab

    【讨论】: