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
  • 544
  • 1
  • 8
  • 25
  • 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

2 Answers2

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
  • 37,818
  • 16
  • 123
  • 144
0

Colab uses Linux machine in the backend so use apt instead of pip

subversion colab screenshot

  • 1
    Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – xlmaster Feb 23 '23 at 18:54