Colaboratory: How to install and use on local machine?

妖精的绣舞 提交于 2020-01-12 14:19:26

问题


Google Colab is awesome to work with, but I wish I can run colab notebooks completely locally and offline, just like jupyter notebooks served from the local?

How do I do this? Is there a colab package which I can install?


EDIT: Some previous answers to the question seem to give methods to access Colab hosted by Google. But that's not what I'm looking for.

My question is how do I pip install colab so I can run it locally like jupyter after pip install jupyter. Colab package doesn't seem to exist, so if I want it, what do I do to install it from the source?


回答1:


From this Github link, it seems that Google Colab may not be (or remain) opensource.

From whatever I have hunted for, the repo is here:

git clone https://github.com/googlecolab/colabtools.git
cd colabtools
python setup.py install

And then check if you have it installed :)

pip list | grep colab
google-colab                       0.0.1a1

Alternatively if you want a wheel (will be put inside dist folder), you shall do

python setup.py bdist_wheel



回答2:


Yes, you can connect Google Colab to Jupyter running on your local machine.

Colaboratory Local runtimes

Follow the instructions in the link above. You just need to install the jupyter extension jupyter_http_over_ws.




回答3:


GoogleColab is a cloud computer,it only runs through Internet,you can desigh your PythonScript,and run PythonScript through Colab,run PythonScript will use GoogleColab hardware,Google will allocate CPU RAM GPU and etc for your PyScript,your lical computer just submit Python code to GoogleColab,and run,then GoogleColab return result to your local computer,cloud computation is stronger than local
computation if your local computer hardware is limited,see this question link will inspire you,asked by me,How to apply GoogleColab stronger CPU and more RAM?



来源:https://stackoverflow.com/questions/50194637/colaboratory-how-to-install-and-use-on-local-machine

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