kernel-1234.json 在 Jupyter 中的 Windows 下在哪里?
Where is kernel-1234.json located in Jupyter under Windows?
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'
Jupyter
在 Windows 中的等价物是什么?
自己回答:
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'
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'
Jupyter
在 Windows 中的等价物是什么?
自己回答:
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'