Can you run Google Colab on your local computer?

房东的猫 提交于 2021-02-04 21:28:08

问题


My PC is rocking a 2080TI so I don't really need the GPU computation of Google Colab, but I do find it a nice development environment (in comparison to jupyter notebooks) and I like the fact that I can access my files from anywhere, so, is it possible to use Google Colab but let my local pc do the computation?


回答1:


Steps:

  • Go to Google colab and click on connect to local runtime, a pop-up comes.

  • Go to your terminal and execute:

jupyter notebook   --NotebookApp.allow_origin='https://colab.research.google.com'   --port=8888   --NotebookApp.port_retries=0

If this shows error:

ERROR: the notebook server could not be started because port 8888 is not available.

Then run the following to basically kill any process using it or use another port:

  1. lsof -wni tcp:8888
  2. kill -9 <JOB_ID>

If successful, then the command gives a link:

For example:

http://localhost:8888/?token=bb80b05aef71999353fe4715e0f06be40d22911648dbdcd6

Copy it in the pop-up in the colab and you are set to go.




回答2:


I think this can help you: research.google.com/colaboratory/local-runtimes.html



来源:https://stackoverflow.com/questions/63087188/can-you-run-google-colab-on-your-local-computer

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