小编pro*_*ent的帖子

WSL2 上与 Jupyter Notebook 的连接速度缓慢

我在 WSL2 实例中运行 Jupyter 笔记本时遇到了一个奇怪的问题。每次我启动一个新笔记本时,我的第一次连接localhost:8888(或localhost:XXXX任何其他端口号)都需要很长时间才能连接,例如 5-10 分钟。然而,一旦与该端口建立了一个连接,所有后续连接都会以正常速度发生。据我所知,延迟并不是专门发生在 Jupyter 服务器内的,因为服务器输出GET在等待期间没有显示任何请求:

> jupyter notebook .
[I 08:29:21.282 NotebookApp] Authentication of /metrics is OFF, since other authentication is disabled.
[W 08:29:21.729 NotebookApp] All authentication is disabled.  Anyone who can connect to this server will be able to run code.
[I 08:29:21.732 NotebookApp] Serving notebooks from local directory: /home/peter/jade_poplar/code/python
[I 08:29:21.732 NotebookApp] Jupyter Notebook 6.4.0 is running at:
[I 08:29:21.732 NotebookApp] http://localhost:8888/
[I 08:29:21.732 NotebookApp] Use Control-C to …
Run Code Online (Sandbox Code Playgroud)

jupyter jupyter-notebook wsl-2

6
推荐指数
1
解决办法
1200
查看次数

标签 统计

jupyter ×1

jupyter-notebook ×1

wsl-2 ×1