Skip to content

Remote kernel cannot start #575

Open
@fakeGenuis

Description

@fakeGenuis

A fancy way of starting a remote kernel is though https://github.com/emacs-jupyter/jupyter?tab=readme-ov-file#starting-a-remote-kernel, but it get emacs stuck in the latest release 30.1. I found the minimum code to reproduce it is like

(let ((file "/ssh:aaa:/home/bbb/foo1.txt"))
  (with-timeout (2.5 (delete-file file))
    (while (file-exists-p file)
      (accept-process-output nil 0.25))))

which correspond to

(jupyter-with-timeout
of function jupyer-session-with-random-ports. It always stuck in 30.1 while works fine in 29.4, the reason is unclear to me. But since for remote file, (interrupt-process process) at above line only interrupt local process and don't remove remote file, so maybe we can change function call around to something like below to solve it?

        (jupyter-with-timeout
            (nil (if (file-remote-p conn-file) 0 jupyter-default-timeout)
                 (delete-file conn-file))
          (not (file-exists-p conn-file)))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions