Commit graph

638 commits

Author SHA1 Message Date
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
Nathaniel Nicandro
a57dc51d75 Add option to only rotate history ring without code replacement 2018-01-16 11:20:32 -06:00
Nathaniel Nicandro
d7b435d111 Locally bind other-window-scroll-buffer 2018-01-16 11:18:54 -06:00
Nathaniel Nicandro
efe9d16228 Add jupyter-repl-insert-ansi-coded-text 2018-01-16 11:17:10 -06:00
Nathaniel Nicandro
c8990aa657 Be less obtuse in jupyter-repl-next-cell 2018-01-16 11:11:30 -06:00
Nathaniel Nicandro
b2a9e9bddf Abstract out some functions for working with kernelspecs 2018-01-16 11:10:17 -06:00
Nathaniel Nicandro
50c507240b Add jupyter--ioloop-queue-message test 2018-01-16 11:08:10 -06:00
Nathaniel Nicandro
64c9079ea0 Add jupyter.el 2018-01-16 11:07:50 -06:00
Nathaniel Nicandro
bb7cd76380 Handle signal interruptions when polling in the ioloop subprocess 2018-01-15 13:01:24 -06:00
Nathaniel Nicandro
4f9c24197c Add with-jupyter-repl-doc-buffer
Meant to be used when wanting to display pager payloads and inspect replies
2018-01-14 14:32:33 -06:00
Nathaniel Nicandro
86e0eef405 Fix jupyter-handle-input-reply for the REPL
`jupyter-repl-do-at-request` already goes to the right place for insertion
2018-01-14 13:58:31 -06:00
Nathaniel Nicandro
20f9ea2643 Do proper cleanup when kernel startup fails
- `jupyter-shutdown-kernel` assumes that the kernel is able to be communicated
  with, but when startup fails we know its not so just delete the process
  immediately.

- When deleting the connection info file after a kernel dies, make sure that
  the file exists first.
2018-01-14 13:54:02 -06:00
Nathaniel Nicandro
faf1ee35e8 Run handler in ioloop filter
Do this because the process buffer is current in the filter, see
`zmq-start-process`. Since we store buffer local values of variables (like
message hooks) there we
would like to have access to them in the handlers.
2018-01-14 02:17:05 -06:00
Nathaniel Nicandro
4d82867ab4 Handle negative numbers in jupyter-repl-history-(next|previous) 2018-01-14 00:05:06 -06:00
Nathaniel Nicandro
133be4aa92 Add documentation 2018-01-14 00:03:31 -06:00
Nathaniel Nicandro
06c149f76d Add/update doc strings 2018-01-13 23:20:50 -06:00
Nathaniel Nicandro
9861d846de Update custom group of jupyter-repl-client 2018-01-13 23:20:17 -06:00
Nathaniel Nicandro
d668f8ddff Make variables permanent local variables 2018-01-13 23:19:34 -06:00
Nathaniel Nicandro
c149bec7bf Go to point-max first when navigating history 2018-01-13 23:18:50 -06:00
Nathaniel Nicandro
224cdabd34 Update comments 2018-01-13 23:18:15 -06:00
Nathaniel Nicandro
6fe839063d Better logic when preserving margins 2018-01-13 23:16:55 -06:00
Nathaniel Nicandro
a5587e3b0b Implement payloads inline 2018-01-13 23:16:04 -06:00
Nathaniel Nicandro
5f350ec535 Refactor jupyter-repl-ret and add doc string 2018-01-13 23:13:02 -06:00
Nathaniel Nicandro
328d6cd1a0 Handle shutdown replies in the REPL 2018-01-13 23:10:40 -06:00
Nathaniel Nicandro
d94abef455 Update jupyter-repl-history-add-input to take into account how the history ring works 2018-01-13 23:09:13 -06:00
Nathaniel Nicandro
ef8ea364e1 Add jupyter-repl-without-continuation-prompts 2018-01-13 23:08:39 -06:00
Nathaniel Nicandro
718bf7b303 Do more work when enabling jupyter-repl-mode 2018-01-13 23:04:52 -06:00
Nathaniel Nicandro
b8a1345ab0 Add missing jupyter-repl--inspect function 2018-01-13 23:04:04 -06:00
Nathaniel Nicandro
60e35a7a14 Update jupyter-repl-mode-map 2018-01-13 23:03:22 -06:00
Nathaniel Nicandro
7288fe47c1 Add more cell motion functions 2018-01-13 23:02:12 -06:00
Nathaniel Nicandro
3432ca2283 Ensure that markdown-mode is available when needed 2018-01-13 23:00:45 -06:00
Nathaniel Nicandro
4ee9ff2ee4 Smarter filling of text in jupyter-repl-fontify-according-to-mode 2018-01-13 23:00:08 -06:00
Nathaniel Nicandro
c58cf8767e jupyter-repl-prompt-margin-width added as a custom variable 2018-01-13 22:59:14 -06:00
Nathaniel Nicandro
b58bf970e4 Update code completion using company 2018-01-13 22:57:50 -06:00
Nathaniel Nicandro
7eb055de8c Update requires 2018-01-13 22:53:19 -06:00
Nathaniel Nicandro
3897eff3ba Update comment section headers 2018-01-13 22:51:27 -06:00
Nathaniel Nicandro
fd89b419a7 Better predicate in jupyter-kernel-alive-p 2018-01-13 22:11:09 -06:00
Nathaniel Nicandro
060340625e Properly cleanup if jupyter-start-kernel fails in jupyter-start-new-kernel 2018-01-13 22:10:38 -06:00
Nathaniel Nicandro
3e57114a18 Code style and remove completed TODO 2018-01-13 22:10:18 -06:00
Nathaniel Nicandro
dc4c9f7a66 Allow restarting the kernel after shutdown in jupyter-shutdown-kernel 2018-01-13 22:08:14 -06:00
Nathaniel Nicandro
80dd6a51e8 Fix jupyter--kernel-sentinel
- `jupyter-stop-channels` is already called in `jupyter-shutdown-kernel`
- Don't delete connection info when kernel dies because it can be restarted.
2018-01-13 22:06:41 -06:00
Nathaniel Nicandro
865db23f28 Set the process sentinel in jupyter--start-kernel 2018-01-13 22:04:06 -06:00
Nathaniel Nicandro
0ad92ce933 Fix use of jupyter-include-other-output 2018-01-13 14:05:03 -06:00
Nathaniel Nicandro
710d4125b5 Update documentation and comments 2018-01-13 13:40:32 -06:00
Nathaniel Nicandro
d67883d9f5 Use unwind-protect instead of condition-case 2018-01-13 13:36:15 -06:00
Nathaniel Nicandro
2d83b757a6 Fix problems with with-jupyter-client-buffer
- Supply `with-current-buffer` with an actual buffer
- Actually expand the `client` argument
2018-01-13 13:34:02 -06:00
Nathaniel Nicandro
00d50633c7 Remove rear-nonsticky property at cell beginning when finalizing a cell
This property is set when inserting new input prompts. It should be removed
when finalizing a cell otherwise it would be possible to insert more text at
the very beginning of a cell when it is finalized.
2018-01-13 02:42:29 -06:00
Nathaniel Nicandro
56a31cbbea Handle edge cases in history navigation jupyter-repl-history-next and jupyter-repl-history-previous
For example do the right thing at history boundaries.
2018-01-13 02:17:26 -06:00