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
0
votes
1 answer

Google Datalab, how to forbid users to connect to VM using --no-user-checking

we have several datalab users who has their own Datalab VM to connect and work with Notebooks. the connect to their vm using the followin command: datalab connect But still they can connect to VM of other users using the following…
Majico
  • 3,810
  • 2
  • 24
  • 36
0
votes
1 answer

Big Query "WITH statement" causing syntax error "WITH trips AS ( --invalid syntax)

My question is about Trying this in Google Data lab, but keeps returning a syntax error File "", line 4 WITH trips AS ( ^ SyntaxError: invalid syntax import google.datalab.bigquery as bq import…
0
votes
1 answer

SSD persistent disk as boot disk for datalab instance

I would like to use a SSD persistent disk as a boot disk for a google cloud datalab instance. With the datalab create command it is not possible to choose a disk type. Is there any other way?
Moritz Dan
  • 13
  • 1
0
votes
1 answer

Datalab Jupyter notebook logs

I have just started working with google cloud datalab. I would like to inspect the logs generated by jupyter-notebook. I can see the process running on the instance, but cannot find where the logs go (either locally on the instance or in stackdriver…
jamborta
  • 5,130
  • 6
  • 35
  • 55
0
votes
1 answer

'datalab connect' get stuck after entering the passphrase

I usually connect to my datalab VM (after starting it) using the "datalab connect " command. Now it get stuck and doesn´t connect after I enter the passphrase key. I still can SSH into the VM. Running docker ps -a, apparently the docker is up and…
0
votes
2 answers

How do I open a gzip file in Google Datalab?

I have a bucket that contains a file.csv.gz. It's around 210MB and I'd like to read it into pandas. Anyone know how to do that? For a non-gz, this works: %gcs read --object gs://[bucket-name]/[path/to/file.csv] --variable csv # Store in a pandas…
zbinsd
  • 4,084
  • 6
  • 33
  • 40
0
votes
1 answer

Legacy SQL with datalab bigquery module

When querying an SQL module with a query written in Legacy sql, and then calling the execute() method, I get the error that we should use standard SQL. Looking through the documentation, I see that the execute method has the argument dialect =…
0
votes
2 answers

Install conda package from Google Datalab

I'm looking to use the ospc taxcalc package in a Google Datalab notebook. This package must be installed via conda. Datalab doesn't have conda by default, so this method (from https://stackoverflow.com/a/33176085/1840471) fails: %%bash conda…
Max Ghenis
  • 14,783
  • 16
  • 84
  • 132
0
votes
0 answers

Container closing the instance

I'm a newbee to container and docker and I just found out that google datalab is a container. So What I do now is to first ssh to the remote VM, then I run the docker exec -ti bash to open the container. Then I run my python…
Elona Mishmika
  • 480
  • 2
  • 5
  • 21
0
votes
1 answer

query with options in pydatalab to specify a default dataset

is there any possibility to specify a default dataset id in the google.datalab.bigquery module while querying? I do not want to specify the whole project_id+dataset_id+table_id, write only the table_id in queries and then add the other ones…
Nico Albers
  • 1,556
  • 1
  • 15
  • 32
0
votes
1 answer

Upgrade datalab to new release

Today when I open it, I saw that all my files have disappeared inside it and there is a word of version upgrade - new version is available on top of it. I got confused and then I searched on how to upgrade it, finding info here:…
Elona Mishmika
  • 480
  • 2
  • 5
  • 21
0
votes
1 answer

Run a magic from within a function in Google Cloud Datalab

I'm looking to use the %storage magic in a Datalab notebook, but within a function. The line looks like: %storage write --variable df --object $bucket_object and when calling the function I get this error: Undefined variable referenced in command…
Max Ghenis
  • 14,783
  • 16
  • 84
  • 132
0
votes
1 answer

Error while creating datalab vm

i am following this datalab quickstarts. when I fire datalab create devVM (devVM is the name of cloud datalab vm that I want to create), I am getting following error ERROR: (gcloud.compute.disks.create) Could not fetch resource: - Invalid value for…
Shahnaz Khan
  • 1,055
  • 1
  • 14
  • 26
0
votes
1 answer

Could not connect to DataLab

I could not connect to datalab of all GCP project. I tried to connect on several way such as Cloud Shell, local environment, and use another PC, but same issue happened. Running command to connect succeed, but trying to connect on browser, it is not…
ryutah
  • 1
0
votes
1 answer

How to use subqueries in Bigquery in Datalab's api?

I have a question about using subqueries in BigQuery in Datalab. This is specific to google.datalab.bigquery.Query. I can use subqueries with %bq command-line in Datalab just fine. Assuming, I did these in Datalab by using %bq as: %bq query --name…
Choppy
  • 372
  • 1
  • 3
  • 9