emacs-jupyter/test
Nathaniel Nicandro eafbc9f967 Merge jupyter-spec-kernel and jupyter-command-kernel
The merged class is `jupyter-kernel-process`.

The `jupyter-command-kernel` class existed to launch kernels using the
`jupyter kernel` shell command. This was done to support launching
kernels on remote systems via TRAMP. The work of generating a
connection info. file was offloaded to that command since it can find
out a set of open ports more reliably on a remote system than Emacs
can.

The only difference between the two classes was that the connection
info. was generated manually for a `jupyter-spec-kernel`, so now the
`jupyter kernel` command is relied on in that case too (via
`jupyter-session-with-random-ports` from
8ad90b887a4afa161d907056ae44db5b119dbc5d).

* jupyter-kernel-process-manager.el
(jupyter-env, jupyter-kernelspec): Require.
(jupyter--after-kernel-process-ready): Remove.
(jupyter--start-kernel-process): New function.
(jupyter-start-kernel)
[jupyter-kernel-process]: Use it, set the SESSION slot of a kernel
before doing so.
(jupyter-command-kernel, jupyter-spec-kernel): Remove. Also remove all
related methods.
(jupyter-start-new-kernel): Use `jupyer--kernel-process` to replace
calls to the removed classes.

* test/jupyter-test.el
(jupyter-kernel-lifetime)
(jupyter-command-kernel): Replace references to removed classes with
`jupyter--kernel-process`
2023-02-13 20:21:14 -06:00
..
jupyter-server-test.el Add jupyter-kernel.el and related 2023-02-13 20:21:14 -06:00
jupyter-test.el Merge jupyter-spec-kernel and jupyter-command-kernel 2023-02-13 20:21:14 -06:00
jupyter-tramp-test.el Ensure all tests that rely on the REST API have a server tag 2023-02-13 20:21:14 -06:00
test-helper.el Replace jupyter-channel-ioloop-comm internals with new impl. 2023-02-13 20:21:14 -06:00