Join GitHub today
[WIP] Connect to existing kernels #4184
This is a cool idea!
A couple things to note that might be helpful --
Thank you for your thoughts!
Yeah, I guess I've got a bit of scope creep.
Just connecting to the given kernel was the initial intention, but the immediate use case I have involves a kernel whose output I don't see, so I'd have to list the kernels in a terminal (or find the relevant process ID) anyway. I think not knowing the connection file name isn't that uncommon.
Additionally, the implementation in
For compatibility I'd like to match that implementation (with the possible exception of the last point).
jupyter/jupyter_client · jupyter_client/connect.py#L169 (for my own reference)
I've thought about this, but right now I don't know how to do it cleanly. I'll probably attempt it at some point in the future.