Commit graph

338 commits

Author SHA1 Message Date
Nathaniel Nicandro
5e1e30630b jupyter-handle-message: Properly handle :shutdown-reply
A shutdown-reply message received by a request implies that no other messages
will be received for that request since the kernel will shutdown. Also set
`jupyter-request-idle-received-p` to `t` in such cases.
2019-03-17 02:01:00 -05:00
Nathaniel Nicandro
08d974f4db jupyter-requests-pending-p: Fix issues and add test
* Use `hash-table-count`

* Fix the check on determining how many pending requests there are
2019-03-17 02:00:00 -05:00
Nathaniel Nicandro
89ab86ca18
jupyter-eval-string: Don't message error when traceback is being shown 2019-03-16 16:34:18 -05:00
Nathaniel Nicandro
4f168bfc47 jupyter-handle-message: Always handle a startup message 2019-03-14 19:57:00 -05:00
Nathaniel Nicandro
1cc29e2ba0 Add jupyter-requests-pending-p 2019-03-14 19:56:00 -05:00
Nathaniel Nicandro
83af335166
Bump version 2019-03-14 09:29:11 -05:00
Nathaniel Nicandro
6a81470be9
jupyter-eval-short-result-display-function: Don't fail when result has '%' characters 2019-03-14 09:16:44 -05:00
Nathaniel Nicandro
662e983612
Don't require subr-x at runtime 2019-03-14 09:16:44 -05:00
Nathaniel Nicandro
744e27e945
jupyter-eval-string: Don't inhibit :input-request handler
See #35.
2019-03-12 18:35:44 -05:00
Nathaniel Nicandro
fbbef48bee
jupyter-completion-at-point: Handle edge case
Some kernels (e.g. IPython) do not send a `:complete-reply` when the
`:complete-request` is empty, handle this case.
2019-03-07 23:16:37 -06:00
Nathaniel Nicandro
6894a73d57
Cleanup stale comments 2019-03-07 22:51:25 -06:00
Nathaniel Nicandro
581aab10b6
jupyter-kernel-language: Change return value to be a symbol
This avoids interning a string for every method dispatch using the
jupyter-lang method specializer.
2019-03-07 22:51:25 -06:00
Nathaniel Nicandro
57e9af3a13
jupyter-handle-message: Update execution-state for any status message 2019-03-02 18:14:49 -06:00
Nathaniel Nicandro
bdc52c485d
Add jupyter-pop-up-frame
Closes #34
2019-03-01 15:52:42 -06:00
Nathaniel Nicandro
484b0934a3 Fix typos 2019-02-17 23:06:00 -06:00
Nathaniel Nicandro
bad068f15b
jupyter--display-eval-result: Prefer markdown if available
If both plain text and markdown are provided, use markdown. IJulia provides
both representations when, e.g. asking for help on a symbol using ? at the
REPL.
2019-02-17 12:45:26 -06:00
Nathaniel Nicandro
249a088e2e
jupyter-handle-input-request: Be more secure when reading passwords 2019-02-17 12:19:16 -06:00
Nathaniel Nicandro
87f1acbf86
jupyter-read-expression: Show the language when prompting 2019-02-16 11:27:44 -06:00
Nathaniel Nicandro
67befbc10c
jupyter-channel-alive-p: Handle an invalid ioloop process 2019-02-14 23:48:51 -06:00
Nathaniel Nicandro
fafdf0d1b2 jupyter-code-context (completion): Larger context inside nested parens 2019-02-14 23:07:00 -06:00
Nathaniel Nicandro
d4969cbfcc CHANGELOG.org: Add function to change version numbers 2019-02-14 23:05:00 -06:00
Nathaniel Nicandro
32d886cf7e jupyter-eval-string: Better validation of jupyter-current-client 2019-02-14 16:11:00 -06:00
Nathaniel Nicandro
7f12b0e8e7
jupyter-read-expression: Proper use of history variable
Also add the read expression as a history element in the REPL history if the
client is a REPL client.
2019-02-13 16:50:51 -06:00
Nathaniel Nicandro
63717b9e39
Bump version 2019-02-12 09:17:06 -06:00
Nathaniel Nicandro
034f309222
Add jupyter-display-current-buffer-reuse-window
Closes #27.
2019-02-11 16:01:41 -06:00
Nathaniel Nicandro
7ddbcc1efc
Cleanup documentation 2019-02-10 02:25:05 -06:00
Nathaniel Nicandro
3d6dece151 Fix jupyter-inspect in org-mode 2019-02-09 14:33:00 -06:00
Sebastian Pech
81f9f60705 Add variables to customize how short evaluation results are displayed (#21)
* Add `jupyter-eval-short-result-display-function`

* Add `jupyter-eval-short-result-max-lines`
2019-02-08 19:28:54 -06:00
Nathaniel Nicandro
5f264ab03a
jupyter-eval-string: Remove redundancy 2019-02-07 13:34:36 -06:00
Nathaniel Nicandro
0a34860707
Fix package-lint errors 2019-02-07 11:17:24 -06:00
Nathaniel Nicandro
771e267034
Fix checkdoc errors 2019-02-06 22:49:41 -06:00
Nathaniel Nicandro
d709b31a64
Add jupyter-message-lambda
This simplifies the writing of message callbacks.
2019-01-22 18:39:17 -06:00
Nathaniel Nicandro
e01f09d97e
Add jupyter-kernel-busy-p 2019-01-18 22:06:37 -06:00
Nathaniel Nicandro
4795032335
jupyter-completion-prefix: Complete argument lists only in IJulia
Python will interpret a completion request here as asking for all possible
completions which is slow.
2019-01-18 22:02:24 -06:00
Nathaniel Nicandro
876c080f7f
Add jupyter-kernel-language-mode-properties and related functions 2019-01-17 19:53:04 -06:00
Nathaniel Nicandro
0dd3946e1e
jupyter-inspect: Increase default timeout 2019-01-16 17:54:59 -06:00
Nathaniel Nicandro
5689819fc6
jupyter-eval-string: Handle stderr 2019-01-16 17:54:44 -06:00
Nathaniel Nicandro
6b7ecfcf08
Add execution-count slot to a jupyter-kernel-client
This allows the default `jupyter-kernel-client' implementation to do the work
of updating the execution count instead of having subclasses track it.
2019-01-13 22:19:25 -06:00
Nathaniel Nicandro
0c92afea26
Add the jupyter-handle-payload method
This replaces the `jupyter-repl--handle-payload` function and allows payloads
to be handled in other contexts than the REPL, for example inserting a new
source block when receiving a set_next_input payload for the `org-mode` client.
2019-01-13 22:19:25 -06:00
Nathaniel Nicandro
86ec099379
jupyter-completion-at-point: Inhibit completion when the kernel is busy 2019-01-12 20:27:19 -06:00
Nathaniel Nicandro
38d6712200
jupyter-eval-string: Include the error name 2018-12-28 12:59:03 -06:00
Nathaniel Nicandro
f5fe8df750
Cleanup of function documentation 2018-12-28 12:59:03 -06:00
Nathaniel Nicandro
03141c6535
jupyter-read-expression: Cleanup variables on minibuffer exit 2018-12-19 21:09:32 -06:00
Nathaniel Nicandro
3debb298e1
jupyter-completion--arg-extract: Handle ; in Julia kernels
This also saves the separator after an argument so that
`jupyter-completion--make-arg-snippet` uses the right separator (either `,` or
`;`)
2018-12-19 20:56:47 -06:00
Nathaniel Nicandro
ee0402ab8e
jupyter-inspect: Ensure jupyter-current-client is valid 2018-12-19 20:55:42 -06:00
Nathaniel Nicandro
bc7f9b4fb5
jupyter-eval: Raise an error if one is returned by the kernel 2018-12-11 21:36:00 -06:00
Nathaniel Nicandro
6f67c0a3d5
jupyter-eval-string: Fix wrong interactive spec 2018-12-11 21:34:57 -06:00
Nathaniel Nicandro
7c01766da3
jupyter-completion--arg-extract: Don't assume spaces exist after separator 2018-12-10 21:36:35 -06:00
Nathaniel Nicandro
8fdde6c756
Update some documentation 2018-12-10 21:36:35 -06:00
Nathaniel Nicandro
4683785553
jupyter-eval: Inhibit client handlers 2018-11-29 02:02:02 -06:00