Questions tagged [google-cloud-datalab]

An online tool for data analysis provided by Google as part of its Cloud Platform.

An easy to use interactive tool for large-scale data exploration, analysis, and visualization.

See more at https://cloud.google.com/datalab.

468 questions
2
votes
1 answer

Datalab - how to install and keep packages

I decided to try and use Google Cloud Datalab for a small project that I'm working on rather than a Jupyter Notebook in an Anaconda environment on an AWS instance. How can I install a package (for example OpenCV) onto the Datalab VM so that I don't…
haroon7
  • 143
  • 2
  • 9
2
votes
2 answers

I can't create the repository datalab-notebooks

Try to create a datalab session following this page: https://cloud.google.com/datalab/docs/quickstarts $datalab create instance-name after running this code, a error occured. ERROR: (gcloud.source.repos.create) ResponseError:…
柳沼慎哉
  • 295
  • 1
  • 3
  • 5
2
votes
2 answers

Uploading files to google cloud datalab VM instance

I have an open google cloud datalab notebook, and I'm looking at folder contents. There is an upload button, and I can use it to upload files. It works fine for any files under about 500kb, but the moment I try to upload anything larger, it simply…
Terkala
  • 21
  • 1
  • 2
2
votes
1 answer

Running google cloud datalab on GKE

I deployed datalab to my GKE cluster: kubectl run datalab --image gcr.io/cloud-datalab/datalab:latest --port 8081 Then I tried forwarding (kubectl port-forward) a local port to port 8081 on the datalab pod, but requests are not reaching the…
Fábio Uechi
  • 807
  • 7
  • 25
2
votes
1 answer

google datalab chart cell magic does not work in local jupyter notebook

I want to make some nice charts like you can see here or here. Normal Querying via %%bq -n data works fine. I installed datalab like described. If i try to make a chart with this %chart line -d data -f field1,field2 logic, something happens, but no…
Nico Albers
  • 1,556
  • 1
  • 15
  • 32
2
votes
2 answers

Google Datalab) How to read multiple csv files existing in Google Cloud Storage by pandas read_csv() to?

I found the solution for reading a "single" csv file in a Datalab : How can i load my csv from google dataLab to a pandas data frame? But I wonder how I could read "multiple" csv files in Datalab. What I tried is like this : variable_list =…
2
votes
0 answers

Using keras in the datalab has issue

I am having trouble with using keras in the datalab. Setting is (us-east-1, n1-standard-1). The issue comes when import Keras then try to use the pre-trained model like vgg16. It seems the future package or the h5py package has issue but not clear…
page
  • 121
  • 1
  • 4
2
votes
1 answer

saving python PIL image from Google cloud datalab to Google cloud storage

I am trying to save a PIL image to google cloud storage from Datalab. from PIL import Image out_image = Image.open( StringIO( gs_buck_obj.read_stream() ) ) # run through cloud vision api and do some stuff .... my_file =…
2
votes
1 answer

Datalab occasionally very slow on simple tasks

I've noticed that datalab is occasionally extremely slow (to the point where I believe it's just hanging). import json import pprint import subprocess import pyspark For instance, on this really trivial code block, the code takes forever to train.…
Max Chang
  • 129
  • 1
  • 1
  • 8
2
votes
1 answer

datalab & google bigQuery client - Trying to execute BQ update commands in a data frame

I have a table with many (hundreds) & later will be thousands of update queries that I would like to execute from the datalab. the code is the following: Reading the table with the commands: %%sql --module std_sql_table WITH q1 as ( SELECT * FROM…
eilalan
  • 669
  • 4
  • 20
2
votes
2 answers

How to use google cloud storage in dataflow pipeline run from datalab

We've been running a Python pipeline in datalab that reads image files from a bucket in google cloud storage (importing google.datalab.storage). Originally we were using DirectRunner and this worked fine, but now we're trying to use DataflowRunner,…
Divya
  • 21
  • 1
  • 4
2
votes
1 answer

How to save a tensorflow model trained in google datalab notebook for offline prediction?

I am using Google Cloud Datalab notebook to train my tensorflow model. I want to save the trained model for offline prediction. However, I am clueless on how to save the model. Should I use any tensorflow model saving method or is there any…
2
votes
1 answer

Downloading saved model from Google Cloud Datalab notebook

I'm new to Google Cloud Platform. I have written my code in Cloud Datalab , and saved a model in the datalabs notebook after training it with data. I want to download the saved model in my local machine and use it for further prediction. I saved the…
JSnow
  • 929
  • 2
  • 11
  • 24
2
votes
1 answer

Google DataLab oauth2.0 link & redirect not authenticating notebook

I am trying to import Google Analytics data to Google Cloud DataLab and having trouble with the oauth2 part of it. I am basically following this quick start and I got it working in my terminal but then I moved it to Cloud Datalab I run the code and…
2
votes
1 answer

unable to run a datalab job on dataproc

I have set-up datalab to run on a dataproc master node using the datalab initialisation action: gcloud dataproc clusters create \ --initialization-actions gs:///datalab/datalab.sh \ --scopes cloud-platform This…
anders
  • 21
  • 1