kernel-1234.json位于Windows下的Jupyter中? [英] Where is kernel-1234.json located in Jupyter under Windows?

查看:406
本文介绍了kernel-1234.json位于Windows下的Jupyter中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

IPython 有一个用于查找内核连接文件的有用函数。

IPython has a useful function for locating the kernel connection file.

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 的等价物是什么?

What is the equivalent in Jupyter on 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'

这篇关于kernel-1234.json位于Windows下的Jupyter中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆