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?
Self answer: