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

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
Do I need to update gcloud components as indicated in docker startup
How to import user-written custom modules in google datalab?
Access to Google Cloud Datalab Fails with ssh Error
Cloud Datalab permissions - 403 on VM URL when sharing access
Do I need to manually specify the project on docker Datalab?
DATALAB does not start correctly
Datalab Notebook Answer y/N in prompt
Error on deploy
How can i load my csv from google dataLab to a pandas data frame?

Categories

HOME
search
kentico
microsoftgraph
c99
fpga
zend-framework
apache-spark-mllib
pyqt4
jetty
jax-ws
trac
extjs4.2
drop-down-menu
commonjs
vimdiff
watson-conversation
filechannel
radgridview
capistrano3
intershop
google-data-studio
selinux
pimcore
tpm
uitapgesturerecognizer
testcomplete
autodesk-designautomation
livelink
left-join
code-snippets
biztalk-rule-engine
fossil
sharding
node-mssql
recurrent-neural-network
opensmpp
android-ibeacon
microsoft-metro
memory-mapping
rfc3339
dapper-simplecrud
puredata
globalize
facebook-pixel
geotiff
google-cse
corruption
amq
otp
oozie-coordinator
mouseleave
d3-force-directed
cd-burning
branch-prediction
restore
nikeplus-api
rspec2
drawstring
i386
pre-build-event
angular-ui-typeahead
nio2
roadkill-wiki
toolkit
dnssec
android-cookiemanager
ssis-data-flow
big-ip
create.js
rcaller
lnk
buffering
scriptaculous
tlf
cnf
route-provider
epiceditor
server-administration
subgraph
subproject
luabind
saxparseexception
object-database
office-2007
hbm2java
blender-2.49
skype4java
escrow
information-management

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