我试图让 google collab 本地运行时工作,但是当我尝试连接到本地服务器时,我得到:
[I 10:17:23.142 NotebookApp] Serving notebooks from local directory: /home/adam/Documents/PYTHON/Complexity_Challenge/Spring_2018
[I 10:17:23.142 NotebookApp] 0 active kernels
[I 10:17:23.142 NotebookApp] The Jupyter Notebook is running at:
[I 10:17:23.142 NotebookApp] http://localhost:8891/
[I 10:17:23.142 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[W 10:17:33.609 NotebookApp] 404 GET /http_over_websocket (127.0.0.1) 50.27ms referer=None
Run Code Online (Sandbox Code Playgroud)
404 GET 在最后一行。我按照https://research.google.com/colaboratory/local-runtimes.html 中的指示更改了 jupyter_notebook_config.py 中的设置
编辑:在鲍勃的评论后,我安装了该软件包,然后打开了一个笔记本并尝试连接。它仍然没有工作,但错误消息是不同的:
(python3) adam@Rilke ~/Documents/DATA/terry20180313 $ jupyter serverextension enable --py jupyter_http_over_ws
Enabling: jupyter_http_over_ws
- …Run Code Online (Sandbox Code Playgroud)