Commit graph

535 commits

Author SHA1 Message Date
Nathaniel Nicandro
b30fc63e48 Add jupyter-repl-fixup-font-lock-properties 2018-01-17 21:23:52 -06:00
Nathaniel Nicandro
5cfb8d329b Make use of the current execution state of a kernel 2018-01-17 21:22:12 -06:00
Nathaniel Nicandro
e2eafa64a4 Simplify builtin is-complete check 2018-01-17 21:05:50 -06:00
Nathaniel Nicandro
0a0e0df213 Add customizable timeout for is-complete requests 2018-01-17 21:04:22 -06:00
Nathaniel Nicandro
a363f639dd Check if kernel is alive before attempting to execute cell 2018-01-17 21:02:56 -06:00
Nathaniel Nicandro
f67a486e9a Use the language modes syntax table for the REPL buffer 2018-01-17 21:00:54 -06:00
Nathaniel Nicandro
1f457a4b1c Add option to associate the current buffer automatically in run-jupyter-repl 2018-01-17 21:00:00 -06:00
Nathaniel Nicandro
2d0328dde5 Use a better workaround for margin display issue 2018-01-17 20:56:42 -06:00
Nathaniel Nicandro
1ee4b2b15d Set the REPL kill buffer query function as a local hook 2018-01-17 20:56:06 -06:00
Nathaniel Nicandro
75e89bf9a1 Allow evaluating a region silently 2018-01-17 20:48:53 -06:00
Nathaniel Nicandro
5d18c6b6c1 Add jupyter-repl-eval-file to send contents of a file to the kernel 2018-01-17 20:48:23 -06:00
Nathaniel Nicandro
00374cb41c Add option to evaluate code without inserting into the REPL buffer 2018-01-17 20:47:05 -06:00
Nathaniel Nicandro
d0257740bb Simplify variable names 2018-01-17 20:37:34 -06:00
Nathaniel Nicandro
1ce282a7a5 Indentation 2018-01-17 20:35:06 -06:00
Nathaniel Nicandro
e4c3088749 Add jupyter-inhibit-handlers
This removes the need for `jupyter-request-inhibit-handlers`
2018-01-17 20:34:32 -06:00
Nathaniel Nicandro
1159342c26 Make jupyter-initialize-connection a function instead of a method
Initializing a connection does not change depending on the client. Or at least
it doesn't seem likely.
2018-01-17 20:15:50 -06:00
Nathaniel Nicandro
91a45c3ce3 Remove :jupyter- prefix for ioloop process plist 2018-01-17 20:15:10 -06:00
Nathaniel Nicandro
bd1d4c8908 Fix callbacks when multiple callbacks exist for a single message type 2018-01-17 20:11:43 -06:00
Nathaniel Nicandro
10bcb8859f Add jupyter-completing-read-kernelspec and jupyter-kernelspecs-for-mode 2018-01-17 20:04:40 -06:00
Nathaniel Nicandro
fb0269ae64 Return the resource directory as well as the kernelspec plist
- Also update lots of documentation
2018-01-17 20:02:29 -06:00
Nathaniel Nicandro
b5d9b98f17 Add header to jupyter-kernelspec 2018-01-17 20:00:44 -06:00
Nathaniel Nicandro
3c1416a3f6 Add -buffer slot for a jupyter-kernel-client
Since client local variables are associated with a buffer a buffer needs to be
present when the client is first initialized. This buffer is also used as the
process buffer of the ioloop subprocess.
2018-01-16 12:08:33 -06:00
Nathaniel Nicandro
e9bd7e5542 Warn if the channel subprocess did not shutdown in time 2018-01-16 12:02:23 -06:00
Nathaniel Nicandro
123a51b648 Process the list of channels once in jupyter--ioloop-filter 2018-01-16 12:01:07 -06:00
Nathaniel Nicandro
06acb2ab8c Handle quit signal when sending input to a kernel 2018-01-16 11:58:55 -06:00
Nathaniel Nicandro
ce19029838 Revert back to old behavior in jupyter--ioloop-filter
Do not rely on message handling to be fast when processing subprocess output
2018-01-16 11:55:53 -06:00
Nathaniel Nicandro
a0effbf359 Use client local value of jupyter-include-other-output 2018-01-16 11:54:11 -06:00
Nathaniel Nicandro
b50522102f Use quoted lists 2018-01-16 11:53:35 -06:00
Nathaniel Nicandro
1d024d54cc Handle signal interrupts in the heartbeat channel 2018-01-16 11:52:59 -06:00
Nathaniel Nicandro
f302445ac2 Handle more failure cases when starting a new kernel 2018-01-16 11:52:26 -06:00
Nathaniel Nicandro
9b66532f94 Use message instead of warn 2018-01-16 11:52:10 -06:00
Nathaniel Nicandro
5864e855e3 Add a buffer to the kernel process
This allows for looking at the kernel stdout
2018-01-16 11:51:16 -06:00
Nathaniel Nicandro
0bb69c6fac Add missing jupyter-repl-interaction-mode 2018-01-16 11:49:29 -06:00
Nathaniel Nicandro
bbe383bb64 Add isearch support for REPL input history 2018-01-16 11:46:05 -06:00
Nathaniel Nicandro
c693a8b75c Add commands for managing a REPL kernel 2018-01-16 11:45:39 -06:00
Nathaniel Nicandro
7e821d3e83 Add commands for sending text to a REPL 2018-01-16 11:44:48 -06:00
Nathaniel Nicandro
94df18e2c7 Add jupyter-repl-inspect-at-point 2018-01-16 11:44:13 -06:00
Nathaniel Nicandro
f15f788abc Update note on window-margins issue 2018-01-16 11:42:27 -06:00
Nathaniel Nicandro
0032652154 Cleanup prefix handling when constructing completion candidates 2018-01-16 11:41:38 -06:00
Nathaniel Nicandro
784f7291d5 Only attempt completion after a dot operator
The other operators are more language specific
2018-01-16 11:40:44 -06:00
Nathaniel Nicandro
22208aeadd Simplify filling text when fontifying
The reason for the previous gymnastics was due to an old  version of `markdown-mode`
2018-01-16 11:37:43 -06:00
Nathaniel Nicandro
f32c0a82b5 Handle mimetypes with empty content 2018-01-16 11:36:34 -06:00
Nathaniel Nicandro
f601113f51 No need to check for nil in jupyter-repl-cell-code-beginning-position
`jupyter-repl-cell-beginning-position` throws an error if the beginning of the
buffer is reached.
2018-01-16 11:35:16 -06:00
Nathaniel Nicandro
e19f5c4b6e Update doc strings and comments 2018-01-16 11:34:22 -06:00
Nathaniel Nicandro
986de4f52b Add predicate to determine if a cell is finalized 2018-01-16 11:31:58 -06:00
Nathaniel Nicandro
274061fc22 Make marking a cell as busy separate from finalizing a cell 2018-01-16 11:30:11 -06:00
Nathaniel Nicandro
98ca58efaf Fix indentation 2018-01-16 11:27:53 -06:00
Nathaniel Nicandro
f0e345475f Use updated jupyter-repl--inspect 2018-01-16 11:27:00 -06:00
Nathaniel Nicandro
5c0156bedc Add optional buffer argument to jupyter-repl--inspect 2018-01-16 11:25:07 -06:00
Nathaniel Nicandro
a1150701d6 Only replace cell code if necessary in jupyter-repl-indent-line 2018-01-16 11:21:10 -06:00