“无法连接到本地运行时"在Google Colab中 [英] "Unable to connect to the local runtime" in google colab

查看:1711
本文介绍了“无法连接到本地运行时"在Google Colab中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试连接本地运行时,但是没有连接,

I'm trying to connect local run time but it's not connecting,

我在以下命令中使用了故障排除对话框:

I used the troubleshooting dialog following commands:

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

尝试了与以下网址中所述相同的步骤 https://research.google.com/colaboratory/local-runtimes.html

Have tried the same above steps as said in below URL https://research.google.com/colaboratory/local-runtimes.html

面对一个问题未检测到Jupyter身份验证cookie" 通过禁用adblocker,防病毒软件以及还使用了不同的端口号进行了尝试.下面是团队给出的解决方案

Facing an issue 'Jupyter authentication cookie was not detected' Tried by disabling adblocker, antivirus and also using different port numbers. Below was the solution given by team

在单独的浏览器标签中导航到 http://localhost:8888 并按照提供的说明进行操作.这将设置一个用于在浏览器和Jupyter笔记本服务器之间进行身份验证的浏览器cookie.

Navigate to http://localhost:8888 in a separate browser tab and follow the provided instructions. This will set a browser cookie used for authentication between the browser and the Jupyter notebook server.

但是当我打开URL时,它会要求输入密码(已设置),然后不再显示进一步的说明.

But when I open the URL, it asks for a password(already set up) and then no further instructions are appearing.

推荐答案

此问题在协作的Github问题中提出: 这个答案帮助我 https://github.com/googlecolab/jupyter_http_over_ws/issues/1#issuecomment-557469128

This issue was raised in Github issues for Collaboratory: This answer helped me https://github.com/googlecolab/jupyter_http_over_ws/issues/1#issuecomment-557469128

根据此问题

使用以下命令启动jupyter笔记本.

start the jupyter notebook with the below command.

jupyter notebook --NotebookApp.allow_origin='https://colab.research.google.com' --NotebookApp.port_retries=0 --notebook-dir="" --no-browser --allow-root --NotebookApp.token='' --NotebookApp.disable_check_xsrf=True --port=8888

然后通过转到此URL打开笔记本.

then open the notebook by going to this URL.

localhost:8888

然后重试使用Google Colab连接到本地运行时

Then retry connecting to local runtime with Google Colab

如果不能解决您的问题,请尝试禁用AdBlock扩展程序或应用.

If it does not solve your problem then try disabling AdBlock extension or app.

这篇关于“无法连接到本地运行时"在Google Colab中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆