Nathaniel Nicandro
3a3e742f8a
Silence byte compiler
2017-12-14 13:58:46 -06:00
Nathaniel Nicandro
fe13c02e42
Default message handlers don't do anything
2017-12-14 13:58:46 -06:00
Nathaniel Nicandro
e59086cad6
Also check control channel
2017-12-14 13:58:45 -06:00
Nathaniel Nicandro
aa6bb20f3a
Update commentary
2017-12-14 13:58:38 -06:00
Nathaniel Nicandro
8e7436962b
Fix function name
2017-12-14 13:58:18 -06:00
Nathaniel Nicandro
4e8cfb8bf6
Use lexical-let
only where its needed
2017-12-14 13:58:18 -06:00
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