对于本地运行时,Colaboratory允许您使用Jupyter连接到本地运行时。这允许您在本地硬件上执行代码,并可以访问本地文件系统。我正在尝试使jupyter_http_over_ws工作。
相应地运行这些脚本,但我被卡住了,它出现了错误。屏幕截图1。
我甚至试着运行最后一个脚本来启动服务器并进行身份验证,但被卡住了,但它也一度被冻结了——屏幕截图2。
pip install 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
屏幕截图1
屏幕截图2
首先确保已正确安装jupyter笔记本电脑和jupyter_http_over_ws
,然后在命令提示符下执行此操作:
jupyter notebook --NotebookApp.allow_origin='https://colab.research.google.com' --port=8888