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
1
vote
0 answers

Combine local and Google colab resources OR avoid excessive memory usage

I have seen a lot of posts asking how to connect Collab to your local machine. However, it was not clear to me if it's possible to combine the resources from the documentation. Let's say that my model needs 35GB RAM and I can only use up to 25 from…
1
vote
1 answer

Colab Python: Downloading/Uploading google files without mounting

I'm using Python in Colabs to access specific files with their IDs, analyze them, and record info on them. I need to save the recorded info in a team folder on Drive. I'm reluctant to mount because the team folder is deep in the architecture of the…
Chelsea
  • 345
  • 2
  • 12
1
vote
0 answers

Tensorflow can't find logs when logdir is stored in variable

I don't get it, when logdir is stored in a variable, like below, tensorboard opens and displays: No dashboards are active for the current data set. logdir = "/content/drive/My Drive/logs/logs11112020" %tensorboard --logdir logdir if I enter the…
Chris
  • 35
  • 7
1
vote
1 answer

how to make pandas row processing faster?

I have 600 csv files each file contains around 1500 rows of data. I have to run a function on the every row of data. I have define the function. def query_prepare(data): """function goes here""" """here input data is list of single row of…
1
vote
1 answer

AttributeError: module 'matplotlib.mlab' has no attribute 'bivariate_normal'

I'm using Colab to create a notebook that trains a machine to take in a string and output it in a handwritten style. I'm using this Jupyter notebook as a guide for how to implement something like this because this is the first thing I have ever…
crowley
  • 43
  • 4
1
vote
1 answer

How to read a large 30GB tar.xz with colab

I downloaded a 30GB tar.xz file to my G-drive using Google Colab. I need help in extracting and reading this folder in Colab. Inside the tar folder, there are ten folders. Is it possible to read these folders individually? I have tried the following…
1
vote
1 answer

pandarallel widgets don't work on Google Colab

Pandarallel supports nice progress widgets. However, I can't get them to appear when using Google Colab. I get output like this instead: This chunk of code, which is supposed to enable the widgets, runs successfully in my notebook (before I use any…
Brannon
  • 5,002
  • 2
  • 29
  • 73
1
vote
0 answers

Google Colab: FileNotFoundError: Cannot find file

On Colab, I cannot download a file generated by the python script. The issue is simple and easy to reproduce. 1. Example colab url:…
pupsozeyde
  • 514
  • 1
  • 9
1
vote
1 answer

What should be the behavior of trigrams to predict next word, given a input size of 2 words?

My bigram language model works fine when one word is given in input, but when I give two words to my trigram model, it behaves strangely and predicts 'unknown' as the next word. My code: def get_unigram_probability(word): if word not in unigram: …
1
vote
1 answer

Accessing extracted zip file in Colab

Some case study here. I am trying to play with PIL library in Google Colab, and can't get ImageFont to read my originally zipped file. The code: import requests, zipfile, io r3 =…
1
vote
2 answers

Loading font from URL to Pillow

Is there a way to load a font with Pillow library directly from url, preferably into Google Colab? I tried something like from PIL import Image, ImageDraw, ImageFont…
1
vote
0 answers

Saving R output in Google Colab

How do I save R output into a file in google colab? It could be saved on google drive or my local drive, either would work. For example, if I wanted to save a list of R objects in a RDS file, normally I would have used something like this on…
Maruf Sazed
  • 41
  • 1
  • 5
1
vote
1 answer

Use TPU in Google Colab

I am currently training a neural network with the help of a TPU. I changed the runtime type and initialized the TPU. I have the feeling that it is still not faster. I used https://www.tensorflow.org/guide/tpu. Did I something wrong? # TPU…
user14576365
1
vote
0 answers

plotly with google colab,

I am re running my notebooks on colab and the fig.show of plotly seems not work anymore I tried to install another plotly version (I have the 4.4.1) but I don't success to have my figure import plotly.graph_objects as go fig = go.Figure( …
parisjohn
  • 271
  • 2
  • 11
1
vote
0 answers

Lambdify not working in Google Colaboratory

I've recently tried running the lambdify function, based on SymPy, on Google Colab, but am not having any success. The same code works on Spyder and Jupyter Notebook, but still no luck. Link to code:…