Nathaniel Nicandro
8ddaa2e469
Add header to jupyter-connection.el
2018-01-22 18:36:16 -06:00
Nathaniel Nicandro
51e48545a6
Fix use of progress reporter
2018-01-22 18:36:00 -06:00
Nathaniel Nicandro
c7a4874222
Only attempt to start a kernel when it is not already started
2018-01-22 18:35:25 -06:00
Nathaniel Nicandro
5cc6c7e475
Update documentation
2018-01-22 18:33:52 -06:00
Nathaniel Nicandro
f93dc7d27d
Small refactor of jupyter-available-kernelspecs
2018-01-22 18:31:32 -06:00
Nathaniel Nicandro
2f0b27712c
Allow for supplying a list of kernelspecs in jupyter-completing-read-kernelspec
2018-01-22 18:30:38 -06:00
Nathaniel Nicandro
c135d9b334
Just return nil if no kernelspec could be found in jupyter-get-kernelspec
2018-01-22 18:29:57 -06:00
Nathaniel Nicandro
44ff33085a
Reword doc string in jupyter--ioloop-collect-messages
2018-01-21 01:08:10 -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
d41751575a
Re-emit error when kernel fails to start
2018-01-21 01:06:29 -06:00
Nathaniel Nicandro
c1b2330cc9
Handle all errors returned by zmq-poller-wait-all
...
Newer versions of `zmq-poller` signal an EAGAIN error
2018-01-21 01:04:38 -06:00
Nathaniel Nicandro
78a9b376eb
Fix missing parentheses
2018-01-20 23:13:23 -06:00
Nathaniel Nicandro
7267577de0
Take into account changes in kernelspec code
2018-01-20 23:13:04 -06:00
Nathaniel Nicandro
d07b9e66fe
Update to take into account changes in emacs-zmq
2018-01-20 21:39:20 -06:00
Nathaniel Nicandro
797b77df17
Update README.org
2018-01-18 23:10:51 -06:00
Nathaniel Nicandro
3b7a17ff34
Update documentation
2018-01-18 23:10:16 -06:00
Nathaniel Nicandro
22d79818c6
Add more debugging statements
2018-01-18 23:09:10 -06:00
Nathaniel Nicandro
42bb8bde69
Use warn
instead of error
when sanity checking
2018-01-18 23:04:22 -06:00
Nathaniel Nicandro
55bdef1b10
Add missing slots argument
2018-01-18 23:03:24 -06:00
Nathaniel Nicandro
3170a2305f
Add documentation for jupyter-message
convenience functions
2018-01-18 23:02:24 -06:00
Nathaniel Nicandro
43d5d4a8c9
Use cl-defgeneric
for jupyter-kernel-manager
methods
...
Also cleanup documentation
2018-01-18 23:00:31 -06:00
Nathaniel Nicandro
6934118012
Add progress reporters when starting a kernel
2018-01-18 22:47:18 -06:00
Nathaniel Nicandro
de635fdc3a
Add customizable jupyter-runtime-directory
variable
...
- Also fix the handling of `resource_dir` in a kernelspec argument vector
2018-01-18 22:45:17 -06:00
Nathaniel Nicandro
f27fad472b
Add documentation to jupyter-kernel-manager
slots
2018-01-18 22:43:52 -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
fc052d3baf
jupyter-connection
objects have a kernel-info slot
...
This allows the kernel info to be shared between a kernel manager and the
clients that have the manager as its parent instance.
2018-01-18 21:14:27 -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
f445e6d951
Optimize jupyter-request-id
2018-01-18 16:33:54 -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
e457ecbfa7
Add object destructors for jupyter-kernel-manager
and jupyter-kernel-client
...
These are used when an object definately needs to be destroyed. They are needed
to cleanup resources like processes and internal buffers.
2018-01-18 16:06:22 -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