2016-01-29 21 views
0

IPython有一個用於定位內核連接文件的有用函數。kernel-1234.json位於Windows下的Jupyter中?

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的等效項是什麼?

回答

2

自我回答:

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'