Where is kernel-1234.json located in Jupyter under Windows?
Asked Answered
D

1

3

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'

What is the equivalent in Jupyter on Windows?

Doughboy answered 29/1, 2016 at 21:55 Comment(0)
D
8

Self answer:

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'
Doughboy answered 29/1, 2016 at 21:57 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.