Nathaniel Nicandro
a0d8b25846
Fix number of characters to look for in looking-back
2018-01-22 19:53:50 -06:00
Nathaniel Nicandro
47395455e5
Allow completion with other backends
2018-01-22 19:53:29 -06:00
Nathaniel Nicandro
d150ffdde9
Fix mispelled function name
2018-01-22 19:52:56 -06:00
Nathaniel Nicandro
edca6b7835
Set jupyter-repl-current-client
to a proper value before jupyter-repl--inspect
2018-01-22 19:47:53 -06:00
Nathaniel Nicandro
ee2877df71
Use put-text-property
instead of add-text-properties
2018-01-22 19:46:10 -06:00
Nathaniel Nicandro
6ad52c0ad8
Take into account changes in jupyter-shutdown-request
2018-01-22 19:43:57 -06:00
Nathaniel Nicandro
af3b343356
Add function declarations
2018-01-22 19:42:36 -06:00
Nathaniel Nicandro
963b7a72da
Update jupyter-repl-mode
to use jupyter-repl-kernel-language-mode-properties
2018-01-22 19:41:47 -06:00
Nathaniel Nicandro
c80b62bdc6
Raise an error when the current-buffer' has no REPL client in
jupyter-repl-pop-to-buffer`
2018-01-22 19:41:01 -06:00
Nathaniel Nicandro
ee69147b72
Only handle execute-result messages originating from us
2018-01-22 19:37:25 -06:00
Nathaniel Nicandro
ac9d4ee6f8
Check mimetypes in an order of decreasing richness
2018-01-22 19:35:52 -06:00
Nathaniel Nicandro
4a482a7e5a
Fix mispelled variable name
2018-01-22 19:35:23 -06:00
Nathaniel Nicandro
df419df989
Use jupyter-repl-without-continuation-prompts
in jupyter-repl-insert-prompt
2018-01-22 19:34:28 -06:00
Nathaniel Nicandro
a0f654ee8a
Fix missing parentheses
2018-01-22 19:33:31 -06:00
Nathaniel Nicandro
c2e4c80df6
Add jupyter-repl-display-other-output
...
This displays output from IOPub messages originating from other clients
2018-01-22 19:32:27 -06:00
Nathaniel Nicandro
2542f819fb
Kill the buffer local value of jupyter-repl-current-client
when disabling juptyer-repl-interaction-mode
2018-01-22 19:30:14 -06:00
Nathaniel Nicandro
436b904572
Rename jupyter-repl-kernel-mode-info
to jupyter-repl-kernel-language-mode-properties
...
Also require that the language info be passed instead of the full kernel info
2018-01-22 19:28:50 -06:00
Nathaniel Nicandro
dbd9ee48c1
Check current-buffer
in jupyter-repl-same-lang-mode-p
2018-01-22 19:27:28 -06:00
Nathaniel Nicandro
19d2261494
Change semantics of a prefix argument in run-jupyter-repl
2018-01-22 19:26:18 -06:00
Nathaniel Nicandro
9ad1f516c3
Add connect-jupyter-repl
to connect to an existing kernel.
2018-01-22 19:25:41 -06:00
Nathaniel Nicandro
497a2b30b5
Remove missing variable language-name
2018-01-21 01:07:33 -06:00
Nathaniel Nicandro
8f15a0c92b
Fix use of removed function
2018-01-21 01:06:49 -06:00
Nathaniel Nicandro
78a9b376eb
Fix missing parentheses
2018-01-20 23:13:23 -06:00
Nathaniel Nicandro
6c44684a9a
Handle all cases in jupyter-repl-next-history
...
The default case in the `cond` should actually replace the cell code if
`no-replace` is nil since it represents the case when the current cell code is
not the top most element in the history ring but we would like it to be.
2018-01-18 22:39:02 -06:00
Nathaniel Nicandro
d92df1b88c
Prevent prompt overlays from inheriting text properties
...
This is an issue when HTML output is inserted, it causes the output prompt to
misalign due to the text properties of adjacent text.
2018-01-18 22:29:26 -06:00
Nathaniel Nicandro
81a7536753
Move most of the REPL initialization to jupyter-repl-mode
2018-01-18 22:09:22 -06:00
Nathaniel Nicandro
3c0564c4f8
Cleanup how buffers displaying text are displayed
2018-01-18 22:02:51 -06:00
Nathaniel Nicandro
694eb6fd11
Remove the need for jupyter-repl-kernel-manager
...
If a `jupyter-repl-client` was created using a `juptyer-kernel-manager`, it
already has the manager as its `parent-instance`. Use this information.
2018-01-18 21:29:29 -06:00
Nathaniel Nicandro
ba695ceec9
Remove links between buffers editing files and the REPL buffer when the clien is closed
2018-01-18 16:43:36 -06:00
Nathaniel Nicandro
131990311f
Cleanup indentation
2018-01-18 16:43:04 -06:00
Nathaniel Nicandro
2e34f07edf
Narrow to the cell code not the entire cell
2018-01-18 16:41:35 -06:00
Nathaniel Nicandro
4660b097b1
Fixup documentation
2018-01-18 16:40:27 -06:00
Nathaniel Nicandro
95ae9f15fc
Rely on jupyter-repl-cell-code-beginning-position
when getting the cell code
2018-01-18 16:36:46 -06:00
Nathaniel Nicandro
8f3d6132a0
Only display graphic mimetypes when a graphic display is available
2018-01-18 16:35:16 -06:00
Nathaniel Nicandro
fec7183933
Only insert error messages when they are from us and when they have a traceback
2018-01-18 16:14:58 -06:00
Nathaniel Nicandro
5c89657995
Handle stream messages not made by our client
...
Stream messages not made by our client will be sent to a buffer and displayed.
Note this will only take affect if `jupyter-include-other-output` is non-nil
for the client.
2018-01-18 16:08:43 -06:00
Nathaniel Nicandro
dd6ec47bdb
Use jupyter-repl-insert-ansi-coded-text
when appropriate
2018-01-17 21:33:39 -06:00
Nathaniel Nicandro
4a7c463931
Refactor jupyter-repl-cell-line-p
...
- The use of `jupyter-repl-previous-cell` is to avoid erroring out in
`jupyter-repl-cell-code-beginning-position` if point is within the output of
a cell.
2018-01-17 21:30:39 -06:00
Nathaniel Nicandro
4b794ac3f9
Remove unecessary error handling
2018-01-17 21:29:54 -06:00
Nathaniel Nicandro
47c50f7c73
Remove edge case that doesn't matter anymore
...
If `pos` is not the beginning of a cell then a beginning can always be found
unless no cell beginning exists, even when `point-min` is the beginning of a
cell. These cases are already handled by the
surround code.
2018-01-17 21:27:04 -06:00
Nathaniel Nicandro
c670e4e620
Cleanup latex insertion
2018-01-17 21:25:16 -06:00
Nathaniel Nicandro
b95f8ce256
Update jupyter-repl-insert-markdown
to take into account newer version of markdown-mode
2018-01-17 21:24:29 -06:00
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