I want to import this code from github to google colab notebook. I used this method and used github address for google colab. But none of the folders in the project is recognized and any module from the folder next to the main code cannot be imported.
Asked
Active
Viewed 1,539 times
1 Answers
1
Colab supports the opening of .ipynb files from Github, not entire Github repositories. As a result, you can only open one notebook at a time.
However, you can import custom libraries from Github into your Colab notebook, as explained in this answer. In short, you'll need to run !pip install git+https://github.com/klicperajo/ppnp

Yufeng Guo
- 11
- 1
-
Thanks for your answer. I added the mentioned code in the first cell of the main ipynb file, but in the next cell, it still says that "No module named 'ppnp.pytorch'", am I doing something wrong? – user137927 Jun 20 '19 at 16:57