0

This topic suggests:

svn checkout https://github.com/lodash/lodash/trunk/test

But it doesn't work in Colab. I tried to install svn:

!pip install tsvn

It returns an error:

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Is there another way to download a folder from github?

Community
  • 1
  • 1
dereks
  • 484
  • 4
  • 20
  • Please checkout this well documented problem here: https://stackoverflow.com/questions/7106012/download-a-single-folder-or-directory-from-a-github-repo – velociraptor11 Jan 02 '20 at 14:22
  • There is no answer. I've already mentioned this in my post. – dereks Jan 02 '20 at 14:27
  • Sorry for missing your link. I was confused because in the post here: https://stackoverflow.com/a/59100287/3068214 it mentioned that there are several different ways to do it but I only see that you've tried using SVN approach. Also, what is the problem that you are exactly facing? Unable to download the library tsvn? Or using the library? – velociraptor11 Jan 02 '20 at 14:38
  • Everything there returns an error. If you managed to download a folder from github to colab write your example here. – dereks Jan 02 '20 at 14:57

1 Answers1

2

Don't use pip, use apt instead

!apt install subversion

Then you can checkout normally

!svn checkout https://github.com/lodash/lodash/trunk/test
korakot
  • 32,074
  • 13
  • 108
  • 128