【发布时间】:2019-06-18 15:38:15
【问题描述】:
我想将this code 从 github 导入到 google colab notebook。我使用了this method 和github address for google colab。但是项目中没有一个文件夹被识别,并且主代码旁边的文件夹中的任何模块都无法导入。
【问题讨论】:
标签: github google-colaboratory
我想将this code 从 github 导入到 google colab notebook。我使用了this method 和github address for google colab。但是项目中没有一个文件夹被识别,并且主代码旁边的文件夹中的任何模块都无法导入。
【问题讨论】:
标签: github google-colaboratory
Colab 支持从 Github 打开 .ipynb 文件,而不是整个 Github 存储库。因此,您一次只能打开一个笔记本。
但是,您可以将自定义库从 Github 导入到 Colab 笔记本中,如 answer 中所述。简而言之,您需要运行!pip install git+https://github.com/klicperajo/ppnp
【讨论】: