无法连接到本地运行时:加载服务器扩展时出错 —

Geo*_*ita 5 jupyter google-colaboratory

我正在尝试连接到本地运行时来编辑Mask R-CNN 模型,但出现以下错误:Error loading server extension \xe2\x80\x94

\n\n
jupyter_http_over_ws extension initialized. Listening on /http_over_websocket\n[I 00:48:59.298 NotebookApp] JupyterLab extension loaded from C:\\Users\\Issstezac1\\anaconda3\\lib\\site-pack\nages\\jupyterlab\n[I 00:48:59.298 NotebookApp] JupyterLab application directory is C:\\Users\\Issstezac1\\anaconda3\\share\\jupy\nter\\lab\n[W 00:48:59.314 NotebookApp] Error loading server extension \xe2\x80\x94\n    Traceback (most recent call last):\n      File "C:\\Users\\Issstezac1\\anaconda3\\lib\\site-packages\\notebook\\notebookapp.py", line 1670, in init_\nserver_extensions\n        mod = importlib.import_module(modulename)\n      File "C:\\Users\\Issstezac1\\anaconda3\\lib\\importlib\\__init__.py", line 127, in import_module\n        return _bootstrap._gcd_import(name[level:], package, level)\n      File "<frozen importlib._bootstrap>", line 1006, in _gcd_import\n      File "<frozen importlib._bootstrap>", line 983, in _find_and_load\n      File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked\n    ModuleNotFoundError: No module named \'\xe2\x80\x94\'\n[I 00:48:59.314 NotebookApp] Serving notebooks from local directory: C:\\\n[I 00:48:59.314 NotebookApp] The Jupyter Notebook is running at:\n[I 00:48:59.330 NotebookApp] http://localhost:8888/?token=325c5ffe303c1c7b54b2639d3c6a256550411126dbfb974\n5\n[I 00:48:59.330 NotebookApp]  or http://127.0.0.1:8888/?token=325c5ffe303c1c7b54b2639d3c6a256550411126dbf\nb9745\n[I 00:48:59.330 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip c\nonfirmation).\n[C 00:48:59.392 NotebookApp]\n\n    To access the notebook, open this file in a browser:\n        file:///C:/Users/Issstezac1/AppData/Roaming/jupyter/runtime/nbserver-2716-open.html\n    Or copy and paste one of these URLs:\n        http://localhost:8888/?token=325c5ffe303c1c7b54b2639d3c6a256550411126dbfb9745\n     or http://127.0.0.1:8888/?token=325c5ffe303c1c7b54b2639d3c6a256550411126dbfb9745\n[W 00:50:09.451 NotebookApp] Blocking Cross Origin API request for /http_over_websocket.  Origin: https:/\n/colab.research.google.com, Host: localhost:8888\n[W 00:50:09.451 NotebookApp] 403 GET /http_over_websocket?min_version=0.0.7&jupyter_http_over_ws_auth_url\n=http%3A%2F%2Flocalhost%3A8888%2F%3Ftoken%3D325c5ffe303c1c7b54b2639d3c6a256550411126dbfb9745 (::1) 0.00ms\n referer=None\n[W 00:50:12.951 NotebookApp] Blocking Cross Origin API request for /http_over_websocket/diagnose.  Origin\n: https://colab.research.google.com, Host: localhost:8888\n[W 00:50:12.951 NotebookApp] 403 GET /http_over_websocket/diagnose?min_version=0.0.7 (::1) 0.00ms referer\n=None\n
Run Code Online (Sandbox Code Playgroud)\n\n

我按照文档中的每一步操作,但仍然无法在本地连接。目前,我使用的是 Mozilla 77.0.1(64 位)版本。因此,我network.websocket.allowInsecureFromHTTPS按照特定浏览器设置中的说明启用了该功能。即使我--no-browser按照Jupyter HTTP-over-WebSocket故障排除建议尝试了该标志。我究竟做错了什么?

\n\n

任何进一步的帮助将不胜感激。

\n

Bil*_*eed 1

有一些原因,例如

  1. 您的浏览器扩展(删除/停止所有扩展,因为它们阻止了您)
  2. 使用

jupyter笔记本 --NotebookApp.allow_origin='https://colab.research.google.com' \ --port=9090 --no-browser