emacs-jupyter/test
Nathaniel Nicandro ee8b5180e5 Make ZMQ an optional user dependency
* jupyter-server.el (jupyter-ioloop, jupyter-server-ioloop): Remove requires.
(jupyter-server): Don't subclass `jupyter-ioloop-comm`.
(jupyter-server--connect-channels, jupyter-server--refresh-comm): Only do
something when the SERVER argument is a `jupyter-comm-layer`, i.e. a
`jupyter-server-ioloop-comm`.  We don't check for that class directly since we
would end up requiring ZMQ.
(jupyter-comm-start) [jupyter-server-kernel-manager]: Use the right subclass of
`jupyter-server-abstract-kcomm` depending on if the `jupyter-server` object is
using ZMQ for communication.
(jupyter-server-make-instance): New function. Returns a `jupyter-server`
instance (a `jupyter-server-ioloop-comm`) that uses ZMQ if
`jupyter-server-use-zmq` is non-nil, and a plain old `jupyter-server` instance
otherwise.
(jupyter-current-server): `jupyter-server` -> `jupyter-server-make-instance`.

* ob-jupyter.el (org-babel-jupyter--server-repl): `jupyter-server` ->
  `jupyter-server-make-instance`.

* test/test-helper.el (jupyter-test-with-notebook): `jupyter-server` ->
  `jupyter-server-make-instance`.
2020-03-30 23:31:14 -05:00
..
jupyter-server-test.el Ensure tests independent of ZMQ don't load it 2020-03-30 23:31:14 -05:00
jupyter-test.el Split ZMQ dependent tests into test/jupyter-zmq-test.el 2020-03-30 23:31:14 -05:00
jupyter-tramp-test.el Remove unnecessary Version headers in test files 2020-03-29 03:08:53 -05:00
jupyter-zmq-test.el Split ZMQ dependent tests into test/jupyter-zmq-test.el 2020-03-30 23:31:14 -05:00
test-helper.el Make ZMQ an optional user dependency 2020-03-30 23:31:14 -05:00