777 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 ...
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 ...
51
votes
5
answers
60k
views
Plotly notebook mode with google colaboratory
I am am trying out colaboratory with plotly notebook mode - I open a new notebook, copy and paste the following simple example from plotly's documentation, but don't see an output. There is a large ...
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 ...
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?
48
votes
8
answers
85k
views
Install Python 3.8 kernel in Google Colaboratory
I try to install a new Python version (3.8) using conda.
!wget -O mini.sh https://repo.anaconda.com/miniconda/Miniconda3-py38_4.8.2-Linux-x86_64.sh
!chmod +x mini.sh
!bash ./mini.sh -b -f -p /usr/...
31
votes
3
answers
109k
views
Opening web camera in Google Colab
I am trying to open a web camera in Google Colab. I've executed the following command:
cap = cv2.VideoCapture(0)
but this is not working: the web camera is not opening.
Is it possible to open a ...
17
votes
4
answers
13k
views
Selenium use chrome on Colab got unexpectedly exited
I have been using selenium chromedriver in google colab for a while.
Today I start my work, I get the error never got before.
I'm wondering if this error is related to the chromedriver version.
This ...
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?
102
votes
7
answers
124k
views
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
...
84
votes
7
answers
192k
views
Colaboratory: Can I access to my Google drive folder and file?
Google Colaboratory is really cool, but it would be more useful if I can access all my google drive files, without using standard google drive API.
Is it possible and easy? and how?
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 ...
79
votes
15
answers
161k
views
How can we use Selenium Webdriver in colab.research.google.com?
I want to use Selenium Webdriver of Chrome in colab.research.google.com for fast processing. I was able to install Selenium using !pip install selenium but the webdriver of chrome needs a path to ...
44
votes
9
answers
90k
views
How can I update Google Colab's Python version?
The current default version of Python running on Google Colab is 3.7, but I need 3.9 for my notebooks to work.
How can I update Google Colab's Python version to 3.9 (or greater)?