Repository metrics
- Stars
- (1,028 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
Hi,
I have worked out how to run a remote kernel at NERSC via ssh. First, I run
ssh jkitchin@nersc "jupyter kernel --kernel=myenv" which creates a kernel,
and then I connect to it like this
#+BEGIN_SRC jupyter-python :session /ssh:nersc:/global/u2/j/jkitchin/.local/share/jupyter/runtime/kernel-13bd20a9-e77f-411a-ba13-c33526716961.json import sys print(sys.path) #+END_SRC
this works, but I wondered if there is a way to kill this kernel remotely. It turns out that just killing the ssh command does not do that, it leaves the kernel running on the server.
update:
ssh -t jkitchin@nersc "jupyter kernel --kernel=myenv" does kill the kernel when I kill the ssh command.
I still wonder if it could be done by elisp in jupyter.el