How do I use gcp package from outside of google datalabs?

一个人想着一个人 提交于 2019-12-25 11:27:10

问题


I created a google compute instance with jupyter and I'd like to use all the nice things datalabs has. Is there a way to get the packages like gcp and the cellmagic like %%sql and %%storage. I found the packages gcloud and google-api-python-client but I don't know if it's the same thing.


回答1:


https://github.com/googledatalab/datalab will give you Datalab-compatible functionality within Jupyter.

Note, however, that the gcp.* prefix has changed to datalab. I.e. datalab.bigquery, datalab.storage, etc.

Also note that you will need to install the Google Cloud SDK (which has the gcloud command) in your instance.



来源:https://stackoverflow.com/questions/37337381/how-do-i-use-gcp-package-from-outside-of-google-datalabs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!