Commit graph

1809 commits

Author SHA1 Message Date
Nathaniel Nicandro
9e422743ec Add some protection against misspelled received message types when adding callbacks 2017-12-14 13:53:52 -06:00
Nathaniel Nicandro
5093759aa9 Handle all possible message types
- All messages sent are prefixed like `jupyter-send-*`. So that an
  `execute_request` maps to `jupyter-send-execute`.

- All received message handlers are prefixed with `jupyter-handle-*`. So that
  an `execute_reply` message would be mapped to `jupyter-handle-execute`. Also
  for IOPub messages, the handlers are also prefixed with
  `jupyter-handle-<iopub message type>` so that a `stream` message would map to
  `jupyter-handle-stream`.
2017-12-14 13:53:52 -06:00
Nathaniel Nicandro
78fca10b67 Handle control messages 2017-12-14 13:53:52 -06:00
Nathaniel Nicandro
725648e10d All messages sent use keys
Also use a variable `jupyter--false` instead of `:json-false` for possibly
supporting other encodings in the future.
2017-12-14 13:53:52 -06:00
Nathaniel Nicandro
bab7305cc8 Mark functions as private 2017-12-14 13:53:48 -06:00
Nathaniel Nicandro
05f3fd0032 Don't query when killing kernels created in jupyter-kernel-client-using-kernel 2017-12-14 13:23:40 -06:00
Nathaniel Nicandro
c3ce229961 Correctly append to callback list 2017-12-14 13:23:04 -06:00
Nathaniel Nicandro
731e5387b4 Add tests for message callbacks 2017-12-14 13:21:55 -06:00
Nathaniel Nicandro
76cf1c5eb7 Semi working prototype 2017-12-13 11:27:13 -06:00