Questions tagged [google-colaboratory]

Google Colaboratory is a research tool for machine learning education and research.

Colaboratory (aka Google colab) is a research tool for machine learning education and research.

Colaboratory is based on Jupyter and Jupyter notebooks can be used and shared without having to download, install, or run anything on your own computer. Colaboratory supports Python 2.7 and Python 3.6. Data analysis and visualisation is frequently done using pandas.

For more information, visit the FAQ.

5017 questions
396
votes
39 answers

wget/curl large file from google drive

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 to get one of them to download. I got the UIDs of…
Arjun
  • 4,100
  • 3
  • 10
  • 10
190
votes
32 answers

How to prevent Google Colab from disconnecting?

Q: Is there any 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 have an idle timeout of 90 minutes and…
FalconUA
  • 7,927
  • 5
  • 28
  • 61
174
votes
21 answers

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 a guide on using BigQuery, but that seems a…
Grae
  • 1,878
  • 2
  • 10
  • 10
140
votes
15 answers

Google Colab: how to read data from my google drive?

The problem is simple: 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/my_project/my_data*"): …
Scitator
  • 1,578
  • 2
  • 8
  • 7
123
votes
9 answers

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 about Google Colaboratory providing free Tesla K80…
stason
  • 3,487
  • 2
  • 22
  • 38
110
votes
6 answers

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?
Lin Jianjie
  • 1,100
  • 2
  • 5
  • 4
99
votes
11 answers

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?
Reham M Samir
  • 1,135
  • 1
  • 6
  • 9
88
votes
13 answers

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 be used for git functionality. So I was wondering if…
Prashanth
  • 881
  • 1
  • 6
  • 4
87
votes
19 answers

Can I use TensorBoard with Google Colab?

Is there any way to use TensorBoard when training a TensorFlow model on Google Colab?
ociule
  • 981
  • 1
  • 7
  • 10
83
votes
7 answers

How to use R with Google Colaboratory?

Google Colaboratory supports Python version 2.7 and 3.6 I saw an example how to use Swift in Colab a while ago. Today, I happened to run !jupyter-kernelspec list And found a new kernel: IRkernel Available kernels: ir …
korakot
  • 24,489
  • 13
  • 84
  • 114
82
votes
5 answers

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/ACECentre/SwitchFrequencyAnalysis.git !cd…
willwade
  • 1,259
  • 1
  • 11
  • 20
72
votes
4 answers

Can I run a Google Colab (free edition) script and then shutdown my computer?

Can I run a google colab (free edition) script and then shutdown my computer? I am training several deeplearning models with crossvalidation, and therefore I would like to know if I can close the window or the computer with the training running at…
S.MC.
  • 981
  • 1
  • 6
  • 13
69
votes
8 answers

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?
F1sher
  • 6,346
  • 9
  • 40
  • 80
63
votes
1 answer

Meaning of "Power Level" on google colab

When I open a new notebook on Google Colab I see a "POWER LEVEL" indicator with a battery symbol at the top. I can click it and choose three different power levels: low, medium and high. I don't remember ever seeing this before on Google Colab. I…
Doron Gold
  • 3,037
  • 2
  • 25
  • 43
59
votes
5 answers

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 individual files. uploaded = drive.CreateFile({'title':…
tetedp
  • 713
  • 1
  • 6
  • 9
1
2 3
99 100