Nathaniel Nicandro
183547403d
jupyter-repl-ret: Use cond
2019-02-18 11:31:57 -06:00
Nathaniel Nicandro
76315d74bd
Fix byte compile error
2019-02-18 11:31:57 -06:00
Nathaniel Nicandro
1a184403a4
Update test
2019-02-17 23:41:01 -06:00
Nathaniel Nicandro
3f76534121
jupyter-repl-syntax-propertize-function: Consider string syntax in output
2019-02-17 23:07:00 -06:00
Nathaniel Nicandro
484b0934a3
Fix typos
2019-02-17 23:06:00 -06:00
Nathaniel Nicandro
4c7d7b390b
jupyter-org-client.el: More refactoring
2019-02-17 23:05:00 -06:00
Nathaniel Nicandro
2119f29def
jupyter-tunnel-connection: Use pcase-let
to reduce verbosity
2019-02-17 23:04: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
298138912d
Remove X-URL header from some files
2019-02-17 08:35:06 -06:00
Nathaniel Nicandro
4cbc5dcc55
jupyter-channel-ioloop.el: Remove unnecessary eval-and-compile
2019-02-17 08:28:17 -06:00
Nathaniel Nicandro
7d7307865b
CHANEGLOG.org -> CHANGELOG.org
2019-02-17 08:25:29 -06:00
Nathaniel Nicandro
7122b239e0
Move org-mode
test setup functions to test/test-helper.el
2019-02-16 15:30:05 -06:00
Nathaniel Nicandro
0579dbcd97
jupyter-insert-latex: Remove modification-hooks from overlays
...
The modification-hooks added by `org-format-latex` cause the overlay to be
deleted whenever it is modified and this will also happen during text property
changes which we want to avoid. Since the buffer is read-only anyways, there is
no need for this hook.
2019-02-16 11:27:44 -06:00
Nathaniel Nicandro
87f1acbf86
jupyter-read-expression: Show the language when prompting
2019-02-16 11:27:44 -06:00
Nathaniel Nicandro
57eeb3dd52
Add tests for jupyter-with-display-buffer
2019-02-16 11:27:44 -06:00
Nathaniel Nicandro
0b6e032063
jupyter-with-display-buffer: Properly handle a nil RESET
2019-02-16 11:27:44 -06:00
Nathaniel Nicandro
afaf45fdea
jupyter-org-client.el: Refactor
2019-02-16 11:27:44 -06:00
Nathaniel Nicandro
2c8ccf32d6
jupyter-repl-kill-buffer-query-function: Ask to also kill the kernel
2019-02-16 09:45:46 -06:00
Nathaniel Nicandro
d8cb82f510
jupyter-with-display-buffer: Advance jupyter-display-buffer-marker
...
This removes any dependency on where `point` ends up when evaluating BODY.
2019-02-16 09:45:46 -06:00
Nathaniel Nicandro
6c7ceb4ae2
jupyter-completion-prefix (julia): Allow symbol key completion in dictionaries
2019-02-15 00:03:14 -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
1109681475
Add tests for jupyter-repl-syntax-propertize-function
2019-02-14 23:06:00 -06:00
Nathaniel Nicandro
d4969cbfcc
CHANGELOG.org: Add function to change version numbers
2019-02-14 23:05:00 -06:00
Nathaniel Nicandro
b01764d06a
jupyter-org-with-src-block-client: Avoid with-current-buffer
...
`jupyter-org-with-src-block-client` is used in the `completion-at-point`
interface and `with-current-buffer` is slow so there should be a slight speed
up here.
2019-02-14 23:04:00 -06:00
Nathaniel Nicandro
46fd8bec20
Generalize org-babel-jupyter-setup-export
2019-02-14 16:54:33 -06:00
Nathaniel Nicandro
75f9df7d0a
jupyter-repl-history-add-input
-> jupyter-repl-history-add
2019-02-14 16:42:12 -06:00
Nathaniel Nicandro
913af5c314
Add jupyter-repl-cell-(pre|post)-send-hook
2019-02-14 16:42:12 -06:00
Nathaniel Nicandro
143eacc6fc
jupyter-repl-finalize-cell: Go to point-max
first
...
The "current input cell" is intended to be the last cell in the REPL buffer so
go to `point-max` before calling `jupyter-repl-cell-beginning-position`.
2019-02-14 16:42:12 -06:00
Nathaniel Nicandro
6eec94a97f
Integrate better with font-lock and syntax-ppss
in the REPL buffer
...
* Add `jupyter-repl-syntax-propertize-function`. This allows packages like
`rainbow-delimiters-mode` to work regardless of what is printed as output of
a REPL cell by setting the syntax-table property on parenthesis in REPL
output.
* Fix an issue with the Julia REPL which would cause `syntax-ppss` to
report the wrong parenthesis depth due to the `]` character of the REPL
package mode. Thus interfering with how `rainbow-delimiters-mode` works.
* Ensure that the kernel language's syntax table is used when fontifying and
adding syntax properties.
2019-02-14 16:12: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
d0ccb98ae5
jupyter-repl-update-cell-count: Only reset input prompts
...
There is no need to reset the prompt when it isn't displaying the cell count.
This also ensures that a kernel that shows a prompt other than the input prompt
doesn't get overwritten.
2019-02-14 00:49:16 -06:00
Nathaniel Nicandro
098d5985f4
jupyter-run-repl: Better error if kernelspec can't be found
2019-02-14 00:11:31 -06:00
Nathaniel Nicandro
524def5a01
jupyter-connect-repl: Un-pause heartbeat channel
...
See #29 .
2019-02-13 23:42:02 -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
9aa58ebce2
Update obsolete documentation on client channels
2019-02-13 09:25:17 -06:00
Nathaniel Nicandro
5af47e3407
Fix #10 : Only verify cask is installed for targets that require it
2019-02-12 20:30:20 -06:00
Nathaniel Nicandro
dc27d1ebe5
jupyter-repl-restart-kernel: Prompt for a REPL client if necessary
...
In the case that `jupyter-current-client` is not a valid REPL client, prompt
for a REPL buffer to restart. See #28 .
2019-02-12 20:30:20 -06:00
Nathaniel Nicandro
4d37b0efea
jupyter-shutdown-kernel: Forcibly kill the kernel after timeout
2019-02-12 15:35:19 -06:00
Nathaniel Nicandro
5f7af55a9c
Update REPL kernel restart process
2019-02-12 15:35:19 -06:00
Nathaniel Nicandro
e8715a9e57
jupyter-hb-pause: Empty the socket's message queue
...
This is needed to avoid an invalid state of the socket when un-pausing the
channel and attempting to send a message when there is a message waiting to be
received.
2019-02-12 14:53:56 -06:00
Nathaniel Nicandro
7de5231ab9
Add CHANGELOG.org
2019-02-12 12:24:16 -06:00
Nathaniel Nicandro
3f5aa0039e
Add org-babel-jupyter-setup-export
...
This function is used to ensure that export variables are setup to handle
Jupyter src-blocks.
2019-02-12 11:49:17 -06:00
Nathaniel Nicandro
63717b9e39
Bump version
2019-02-12 09:17:06 -06:00
Nathaniel Nicandro
4978c28add
Revert jupy- prefix to jupyter- for org-mode src-blocks
...
Closes #5 .
2019-02-12 09:17:06 -06:00
Nathaniel Nicandro
5d293bb2d3
Let bind display-buffer-base-action
before calling display-buffer
...
This is to give packages like window-purpose a chance to work since passing in
the action alist directly seems to override the behavior of such packages.
See #27 .
2019-02-12 08:35:03 -06:00
Nathaniel Nicandro
034f309222
Add jupyter-display-current-buffer-reuse-window
...
Closes #27 .
2019-02-11 16:01:41 -06:00
Nathaniel Nicandro
2b179256eb
jupyter-repl-propagate-client: Fix documentation
2019-02-11 14:36:57 -06:00
Nathaniel Nicandro
3af61ab8cb
jupyter-repl-available-repl-buffers: Use object-of-class-p
...
See #26 .
2019-02-10 11:29:33 -06:00