I haven't found answers in github or in the jupyter help.
TL;DR:
I need a command-line that tells me the same thing as the %connect_info
magic, in particular the line Connect with --existing kernel-4e4c970e-cccb-2485-a09d-d56efd10e278.json
.
My current setup is to have the jupyter notebook launched from a work server. Then I connect to that server with SSH, and can work in the same kernel by attaching a console to it:
jupyter console --existing kernel-4e4c970e-cccb-2485-a09d-d56efd10e278.json
(in a tmux
+vim
+slimux
setup, which by the way I often find more convenient).
The problem is:
- The only way to get the kernel string is from the notebook itself (which may be difficult to access over SSH);
- I have several notebook runnings, sometimes I need to quickly check which one I need.
So is there a command to run from the shell on the server, that would list running kernels, which notebook launched them, and ideally if there are consoles attached?