google-cloud-datalab


is it possible to use the discovery module from the Google apiclient in Cloud Datalab?


I have a simple python script that does something like this:
from apiclient import discovery
from oauth2client.client import GoogleCredentials
ggSvc = discovery.build ( 'genomics', 'v1', credentials=credentials )
body = { "readGroupSetIds": [readGroupSetId],
"referenceName": args.chr,
"start": args.pos-2,
"end": args.pos+2,
"pageSize": 256 }
r = ggSvc.reads().search ( body=body ).execute()
is it possible to do this from Datalab or is my best option to use the requests module and then construct and post the http request that way?
The following command will install the google api python client
!pip install google-api-python-client
You can also run commands using the %%bash cell magic option.
For example,
%%bash
pip install google-api-python-client

Related Links

Menubar in datalab keeps vanishing
How do I attach a local ssd to a Datalab instance?
Is it possible to create a google cloud datalab instance not using datalab-network?
fail to create repository [datalab-notebooks] for Project
bigquery - current_date() inconsistent result?
Can I export to Google Sheets from Datalab?
Using bq command in datalab - credentials needed
Can I create kernel gateway endpoints in google cloud datalab?
Fastest way to read big amounts of data in Google Datalab?
Datalabs project not found
Datalab front get stuck when opening notebooks, and buttons aren't working
How can I programmatically give Cloud ML access to a bucket?
Running cloud datalab kernel on my own server?
How can I get the Cloud ML service account programmatically in Python?
Google datalab : how to import pickle
Is text the only content type for %%storage magic function in datalab

Categories

HOME
windows
cygwin
httparty
delphi-7
ng-idle
nvd3.js
swt
static
battery
hessian
spring-data-redis
spring-data-mongodb
emscripten
pyqt4
mapbox
banner
vert.x
elasticsearch-5
ipmitool
php-5.6
shared-libraries
package-managers
google-content-api
google-maps-autocomplete
symbols
ios10.2
string-concatenation
siri
surveymonkey
quantlib
errbot
calculation
postback
cart
laravel-eloquent
alphabetical
amazon-ses
connection-pool
bc
plaintext
vmware-fusion
laravel-elixir
branching-and-merging
ssrs-2014
contract
clang++
jide
xbmc
tf
google-cse
arq
pair-programming
java-6
android-testing
excel-dna
bbpress
rackspace-cloud
gpg-signature
materialized-path-pattern
node-request
ziparchive
redbeard-ios
microstation
lrs
myspace
lua-telegram-bot
cda
hadoop-partitioning
cycle2
mobiledoc-kit
asyncdisplaykit
highland.js
state-restoration
visual-sourcesafe-2005
lasso
dnssec
kubuntu
java-security
code-documentation
cross-join
apache-spark-1.3
webmatrix-3
ghcjs
administration
reflector
spring-remoting
synapse
light
dtmf
inappsettingskit
workitem
process-explorer
poker
insert-id
mantle
http-status-code-410
extreme-programming
htdocs
fsevents
unattended-processing
office-2007
jqueryform
web-application-project
wcf-instancing
fdf
change-management
appliance

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App