7,686 questions
628
votes
48
answers
982k
views
wget/curl large file from google drive [closed]
I'm trying to download a file from google drive in a script, and I'm having a little trouble doing so. The files I'm trying to download are here.
I've looked online extensively and I finally managed ...
362
votes
39
answers
504k
views
How can I prevent Google Colab from disconnecting?
Is there a way to programmatically prevent Google Colab from disconnecting on a timeout?
The following describes the conditions causing a notebook to automatically disconnect:
Google Colab notebooks ...
278
votes
17
answers
900k
views
How to read data in Google Colab from my Google drive?
I have some data on gDrive, for example at
/projects/my_project/my_data*.
Also I have a simple notebook in gColab.
So, I would like to do something like:
for file in glob.glob("/projects/...
230
votes
24
answers
516k
views
Import data into Google Colaboratory
What are the common ways to import private data into Google Colaboratory notebooks? Is it possible to import a non-public Google sheet? You can't read from system files. The introductory docs link to ...
185
votes
6
answers
534k
views
How do I install Python packages in Google's Colab?
In a project, I have e.g. two different packages, How can I use the setup.py to install these two packages in the Google's Colab, so that I can import the packages?
163
votes
6
answers
384k
views
Changing directory in Google colab (breaking out of the python interpreter)
So I'm trying to git clone and cd into that directory using Google collab - but I cant cd into it. What am I doing wrong?
!rm -rf SwitchFrequencyAnalysis && git clone https://github.com/...
163
votes
17
answers
336k
views
Importing .py files in Google Colab
Is there any way to upload my code in .py files and import them in colab code cells?
The other way I found is to create a local Jupyter notebook then upload it to Colab, is it the only way?
158
votes
11
answers
278k
views
How do I download multiple files or an entire folder from Google Colab?
Currently, I can download files as individual files with the command
files.download(file_name)
I also tried uploading them to the drive with the below code snippet but it is uploading them as ...
151
votes
17
answers
219k
views
Methods for using Git with Google Colab
Are there any recommended methods to integrate git with colab?
For example, is it possible to work off code from google source repositories or the likes?
Neither google drive nor cloud storage can ...
140
votes
18
answers
186k
views
accessing "Shared with me" with Colab
I want to get access to the files in the Google Drive's "Shared with me" directory.
In the Colab python notebook the following commands:
import os
from google.colab import drive
drive.mount('/...
133
votes
10
answers
118k
views
Google Colaboratory: misleading information about its GPU (only 5% RAM available to some users)
update: this question is related to Google Colab's "Notebook settings: Hardware accelerator: GPU". This question was written before the "TPU" option was added.
Reading multiple excited announcements ...
132
votes
4
answers
185k
views
Can I run a Google Colab (free edition) script and then shut down my computer?
Can I run a google colab (free edition) script and then shut down my computer?
I am training several deeplearning models with crossvalidation, and therefore I would like to know if I can close the ...
122
votes
8
answers
267k
views
How to download file created in Colaboratory workspace?
I found many hints how to upload data into Colaboratory.
But now I want to do opposite -> I want to download .csv I've created in Colaboratory workspace.
How to do this?
114
votes
22
answers
96k
views
Can I use TensorBoard with Google Colab?
Is there any way to use TensorBoard when training a TensorFlow model on Google Colab?
111
votes
6
answers
80k
views
How do I install a library permanently in Colab?
In Google Colaboratory, I can install a new library using !pip install package-name. But when I open the notebook again tomorrow, I need to re-install it every time.
Is there a way to install a ...