【问题标题】: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'
    

    【讨论】:

      猜你喜欢
      • 2021-04-04
      • 1970-01-01
      • 2016-06-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-04-11
      • 2020-12-21
      • 2021-03-01
      相关资源
      最近更新 更多