找不到 json 由 ipython 内核创建的连接文件
Cannot locate json connection file created by ipython kernel
我正在使用 ipython 4.1.2(通过 Anaconda 安装)。我找到配置文件位置(默认)
ipython locate profile
/home/myname/.ipython/profile_default
ipython kernel
运行正常,说
To connect another client to this kernel, use:
--existing kernel-8664.json
然而,当我往里面看时 /home/myname/.ipython/profile_default/security
,它完全是空的。
这里有什么问题?
连接文件现在位于不同的位置,因为它们是 Jupyter 架构的一个组件,而不是 IPython 特定的东西。具体位置取决于您的系统,但您可以通过 运行:
找到它
jupyter --runtime-dir
或在Python代码中,调用:
jupyter_core.paths.jupyter_runtime_dir()
我正在使用 ipython 4.1.2(通过 Anaconda 安装)。我找到配置文件位置(默认)
ipython locate profile
/home/myname/.ipython/profile_default
ipython kernel
运行正常,说
To connect another client to this kernel, use: --existing kernel-8664.json
然而,当我往里面看时 /home/myname/.ipython/profile_default/security
,它完全是空的。
这里有什么问题?
连接文件现在位于不同的位置,因为它们是 Jupyter 架构的一个组件,而不是 IPython 特定的东西。具体位置取决于您的系统,但您可以通过 运行:
找到它jupyter --runtime-dir
或在Python代码中,调用:
jupyter_core.paths.jupyter_runtime_dir()