在Python IDE中使用Google Colaboratory服务器作为Python解释器,可以通过以下步骤实现:
jupyter_http_over_ws
扩展:pip install jupyter_http_over_ws
jupyter_http_over_ws
扩展:jupyter serverextension enable --py jupyter_http_over_ws
jupyter notebook --NotebookApp.allow_origin='https://colab.research.google.com' --port=8888 --NotebookApp.port_retries=0
[I 11:23:45.678 NotebookApp] Serving notebooks from local directory: /path/to/your/project
[I 11:23:45.678 NotebookApp] Jupyter Notebook 6.4.0 is running at:
[I 11:23:45.678 NotebookApp] http://localhost:8888/
[I 11:23:45.678 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
http://localhost:8888/
链接地址。/ws
,形如:http://localhost:8888/ws
现在,你已经成功将Google Colaboratory服务器作为Python解释器配置在Python IDE中。你可以使用该解释器来运行和调试Python代码,并享受Colaboratory提供的云计算资源和功能。
没有搜到相关的沙龙
领取专属 10元无门槛券
手把手带您无忧上云