您可以在本地计算机上运行Google Colab吗? [英] Can you run Google Colab on your local computer?
问题描述
我的PC正在摇摆2080TI,所以我确实不需要Google Colab的GPU计算,但是我确实发现它是一个不错的开发环境(与jupyter笔记本相比),并且我喜欢我可以访问我的文件的事实因此,可以从任何地方使用Google Colab,但让我的本地PC进行计算吗?
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?
推荐答案
步骤:
-
转到
Google colab
并单击连接到本地运行时",将弹出一个窗口.
Go to
Google colab
and click on connect to local runtime, a pop-up comes.
转到您的终端并执行:
jupyter notebook --NotebookApp.allow_origin='https://colab.research.google.com' --port=8888 --NotebookApp.port_retries=0
如果显示错误:
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:
-
lsof -wni tcp:8888
-
kill -9 <JOB_ID>
lsof -wni tcp:8888
kill -9 <JOB_ID>
如果成功,则该命令将提供一个链接:
If successful, then the command gives a link:
例如:
http://localhost:8888/?token=bb80b05aef71999353fe4715e0f06be40d22911648dbdcd6
将其复制到colab的弹出窗口中,就可以开始了.
Copy it in the pop-up in the colab and you are set to go.
这篇关于您可以在本地计算机上运行Google Colab吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!