Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
620 views
in Technique[技术] by (71.8m points)

python - Can you run Google Colab on your local computer?

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Steps:

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

  • 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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...