【问题标题】:Where is kernel-1234.json located in Jupyter under Windows?Windows 下 Jupyter 中的 kernel-1234.json 位于何处?
【发布时间】:2016-01-29 21:55:32
【问题描述】:
IPython有一个定位内核连接文件的有用功能。
In [1]: from IPython.lib.kernel import find_connection_file
In [2]: find_connection_file()
Out[2]: 'C:\\Users\\me\\.ipython\\profile_default\\security\\kernel-1234.json'
Windows 上Jupyter 中的等价物是什么?
【问题讨论】:
标签:
python
ipython
jupyter
【解决方案1】:
自我回答:
In [1]: from jupyter_client import find_connection_file
In [2]: find_connection_file()
Out[2]: 'C:\\Users\\me\\AppData\\Roaming\\jupyter\\runtime\\kernel-1234.json'