jupyter安全目录为空,但jupyter笔记本列表显示正在运行的服务器

时间:2017-12-27 16:31:35

标签: jupyter-notebook jupyter

当我运行jupyter notebook list时,我得到:

Currently running servers: http://localhost:8888/?token=2f349408fa7154054c6f3f63128f3461eb9983ec068726d1 :: /path/to/project

我检查了security目录,其中应为当前配置文件存储连接文件,并且该目录为空。

我尝试了jupyter notebook stop,但我得到了:No such file or directory: ./stop

我还尝试使用fuser和nettop列出当前打开的连接。连接不在那里,它不应该是因为我暂时没有在列出的项目上工作。

Jupyter版本是5.0.0,在Mac OS上运行。

1 个答案:

答案 0 :(得分:0)

要获取当前连接目录,我在Jupyter common directories and file locations documentation之后运行了jupyter --paths。从那里我选择了运行时目录,所以我打开它。包含的目录

  • notebook_cookie_secret file
  • 许多名称格式的文件: kernel-hash_number.json
  • 一个名称格式的文件: NBSERVER-server_number.json

我打开了nbserver-server_number.json文件,检查token号与jupyter notebook list给出的号码是否相同。我删除了该文件,现在Jupyter不再将其视为正在运行的服务器。

相关问题