Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Colab - Install from GitHub? GLRM

My team and I are working on Colab. We would like to use the GLRM package.

Is there any way to install it directly from GitHub?

like image 836
ForeignVolatility Avatar asked Jun 14 '18 05:06

ForeignVolatility


People also ask

How do I download a colab file from GitHub?

go to zip file you want to download (i.e. https://github.com/lukyfox/Datafiles/blob/master/digits/digits.zip) Locate button Download and copy its address (RMB->Copy link address), for the example above copied address is https://github.com/lukyfox/Datafiles/raw/master/digits/digits.zip. Go to Google colab file and use !

Can I PIP install in Colab?

Importing a library that is not in Colaboratory To import a library that's not in Colaboratory by default, you can use !pip install or ! apt-get install .


2 Answers

Installing anything from Github is easy using pip:

!pip install git+https://github.com/cehorn/GLRM.git

You have acces to the full command line in Google Colab, so you can install anything you want, any way you want. Just put a ! in front of any command in a cell and it is executed on the command line.

like image 105
pgunnink Avatar answered Oct 17 '22 16:10

pgunnink


A good way is to clone the git hub folder like this:

 !git clone https://github.com/cehorn/GLRM.git

it wil create a folder in the /content side of drive like this: enter image description here

like image 36
Shaina Raza Avatar answered Oct 17 '22 16:10

Shaina Raza