您可以在本地计算机上运行 Google Colab 吗? [英] Can you run Google Colab on your local computer?
问题描述
我的 PC 是 2080TI,所以我真的不需要 Google Colab 的 GPU 计算,但我确实发现它是一个不错的开发环境(与 jupyter notebooks 相比)并且我喜欢我可以访问我的文件的事实是否可以从任何地方使用 Google Colab,但让我的本地电脑进行计算?
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
如果成功,则命令给出一个链接:
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屋!