Nathaniel Nicandro
064bf4f031
Add functions to work with a jupyter-channel's
recv-queue`
2018-01-02 13:50:13 -06:00
Nathaniel Nicandro
5f2f9fbb3a
Cleanup tests to take into account changes in jupyter-client
2018-01-02 13:50:13 -06:00
Nathaniel Nicandro
a224253a46
Rename jupyter--send-encoded
-> jupyter-send
, jupyter--recv-decoded
-> jupyter-recv
2018-01-02 13:50:12 -06:00
Nathaniel Nicandro
940594fda6
Rename jupyter-request-*
to jupyter-*-request
...
Where `jupyter-request-*` are the `jupyter-kernel-client` request methods. This
required the underlying messages request message functions to be renamed to
`jupyter-message-*-request` from `jupyter-*-request`.
2018-01-02 13:50:08 -06:00
Nathaniel Nicandro
8d20384bf3
Remove the need to specify a client in the callback interface
...
- Also rename `jupyter-add-receive-callback` to `jupyter-add-callback`
2017-12-31 14:17:56 -06:00
Nathaniel Nicandro
276d7a5b53
Cleanup documentation and comments
2017-12-31 13:16:59 -06:00
Nathaniel Nicandro
7ed9f8f147
No need to update the execution counter in an execute result message
2017-12-31 11:50:36 -06:00
Nathaniel Nicandro
3ab46c590e
Add code to input history when executing
2017-12-31 11:49:18 -06:00
Nathaniel Nicandro
00e030daa1
Remove unnecessary code when truncating the REPL buffer
2017-12-31 11:48:44 -06:00
Nathaniel Nicandro
4135e00ed1
Add initial support for payloads
2017-12-31 11:48:18 -06:00
Nathaniel Nicandro
d6d5c2a7bd
Complete word down to previous space on the current line
2017-12-31 11:47:18 -06:00
Nathaniel Nicandro
237c38d261
Fix fontification of company
doc buffers
2017-12-31 11:46:23 -06:00
Nathaniel Nicandro
5c80b4c56f
Remove input-start-marker
for REPL clients
2017-12-31 11:45:55 -06:00
Nathaniel Nicandro
fd1b9c8ada
Add missing REPL prompt variable
2017-12-31 11:45:32 -06:00
Nathaniel Nicandro
311df47325
Return the correct value in jupyter-repl-kill-buffer-query-function
2017-12-31 11:44:31 -06:00
Nathaniel Nicandro
a3fa6d5231
Add documentation, cleanup comments
2017-12-31 11:44:10 -06:00
Nathaniel Nicandro
1b45b1996d
Break up REPL initialization into functions
2017-12-31 11:41:53 -06:00
Nathaniel Nicandro
4edf67655c
Use jupyter-repl-indent-line
when the kernel does not provide identation
2017-12-31 11:39:32 -06:00
Nathaniel Nicandro
1754c8ce3d
Add rudimentary history navigation
2017-12-31 10:17:18 -06:00
Nathaniel Nicandro
d9ec556579
Use the jupyter-repl-do-at-request
macro
2017-12-31 10:15:19 -06:00
Nathaniel Nicandro
4ad7cd299e
Use predicate functions instead of checking text properties
2017-12-31 10:12:50 -06:00
Nathaniel Nicandro
3325ae511a
Add missing jupyter-repl-cell-request
function
2017-12-31 10:11:50 -06:00
Nathaniel Nicandro
50a2464241
Use overlays for prompts and cleanup how they are inserted
2017-12-31 10:09:45 -06:00
Nathaniel Nicandro
619bf87c69
Handle edge cases in jupyter-repl-goto-request
2017-12-31 09:52:21 -06:00
Nathaniel Nicandro
126fb97b2d
Generalize insertion of mimetype data
2017-12-31 09:37:56 -06:00
Nathaniel Nicandro
557e97c179
Fix subprocess sentinel event checking
2017-12-30 23:35:04 -06:00
Nathaniel Nicandro
c7c200d571
Heartbeat channels are implemented with timers instead of a subprocess
2017-12-30 23:32:17 -06:00
Nathaniel Nicandro
b57040e96c
Fix wrong function name
2017-12-28 09:47:16 -06:00
Nathaniel Nicandro
8ac10186f2
Change the way prompts are displayed
...
Allow for visually displaying a cell as busy when submitting the cell's code
and only remove the busy status when the cell receives its execute reply. This
allows for queuing of code cells instead of having to wait for a code cell to
complete.
2017-12-28 09:45:03 -06:00
Nathaniel Nicandro
397e0526d0
Use text property functions instead of field
based ones
2017-12-28 09:43:36 -06:00
Nathaniel Nicandro
082bf0e40c
Use jupyter-repl-newline
2017-12-27 22:21:10 -06:00
Nathaniel Nicandro
3270fdf141
Refactor execute result handler
2017-12-27 22:17:38 -06:00
Nathaniel Nicandro
27d4283331
Add code sections
2017-12-27 21:55:58 -06:00
Nathaniel Nicandro
fc5b58e355
Add company
backend handler when initializing jupyter-repl-mode
2017-12-27 21:55:16 -06:00
Nathaniel Nicandro
9ba4c4125f
Tag prompt cells with their requests
...
- Add a text property `jupyter-request` to the start of an input cell which
gets filled with the `jupyter-request` object returned by the
`jupyter-request-execute` method. This way REPL cells can be queued behind
long running calculations and their proper location found when the kernel
sends back output or results for the request.
2017-12-27 21:55:04 -06:00
Nathaniel Nicandro
0937846453
Use the right function name
2017-12-27 21:50:33 -06:00
Nathaniel Nicandro
0a3fb27343
Inhibit change hooks when truncating buffer
2017-12-27 21:47:40 -06:00
Nathaniel Nicandro
c43eea4938
Do not rely on any markers to find positions in the buffer
2017-12-27 21:47:00 -06:00
Nathaniel Nicandro
58c810e187
Cleaner implementation of getting/replacing cell code
2017-12-27 21:46:15 -06:00
Nathaniel Nicandro
361a32a165
Introduce cell motions and predicates
2017-12-27 21:28:07 -06:00
Nathaniel Nicandro
42002e3ac3
Let buffer change functions handle continuation prompts
2017-12-27 21:23:40 -06:00
Nathaniel Nicandro
bd92ce16bb
Use indent-line-function
instead of binding TAB
2017-12-27 21:21:33 -06:00
Nathaniel Nicandro
8603c0226e
Implement buffer change functions
...
- After a buffer change, check to see if a continuation prompt needs to be
inserted
- Before a buffer change, check to see if a continuation prompt needs to be
removed
2017-12-27 21:17:46 -06:00
Nathaniel Nicandro
d21c7a2bed
Clean up REPL buffer initialization
2017-12-27 21:15:59 -06:00
Nathaniel Nicandro
3071b64611
Clean up how text is inserted in REPL buffer
2017-12-27 21:13:23 -06:00
Nathaniel Nicandro
c3c3f7c44e
No underscores
2017-12-27 21:07:36 -06:00
Nathaniel Nicandro
e9e35cb177
Remove comments
2017-12-27 00:34:19 -06:00
Nathaniel Nicandro
06fee9c57a
Properly initialize kernel client with a kernel manager
2017-12-27 00:32:55 -06:00
Nathaniel Nicandro
363f59ef76
Remove time decoding from main loop in client subprocess
2017-12-27 00:32:00 -06:00
Nathaniel Nicandro
59a2a468a7
Only use control channel in kernel manager
2017-12-27 00:30:47 -06:00