Nathaniel Nicandro
5046ac91b4
jupyter-code-context: Only send the line context for org-mode
completion requests
...
Sending the entire code block on every completion request seems like overkill.
2018-10-25 23:59:46 -05:00
Nathaniel Nicandro
fb3dd1eebf
jupyter-code-context: Only send the current line context for a jupyter-org-client
...
Previously the entire code cell was sent, but this can be an issue for large
code cells.
2018-10-25 23:17:28 -05:00
Nathaniel Nicandro
948fa6adfc
Rename jupyter-with-doc-buffer
to jupyter-repl-with-doc-buffer
...
Also rename `jupyter-get-doc-buffer` to `jupyter-repl-get-special-buffer`
2018-10-25 23:17:27 -05:00
Nathaniel Nicandro
a9246fcecb
Rename with-jupyter-*
to jupyter-with
...
Ensure that all functions and macros have the same
pseudo-namespace
2018-10-25 23:17:25 -05:00
Nathaniel Nicandro
394a82a5c2
Update note on injecting render parameters for displaying org-mode
results
2018-10-25 23:17:25 -05:00
Nathaniel Nicandro
da6587f5f6
Only modify the result parameters if needed in jupyter-org-add-result
2018-10-25 23:17:25 -05:00
Nathaniel Nicandro
1198965d57
Documentation changes
2018-10-25 23:17:25 -05:00
Nathaniel Nicandro
6e59813dc4
Add to CAPF for code block completion when org-mode is enabled
2018-10-25 23:17:25 -05:00
Nathaniel Nicandro
90f2878617
Fix code beginning position of completion context for org-mode
source blocks
2018-10-25 23:17:24 -05:00
Nathaniel Nicandro
19abd9a5c6
Define and use the jupyter-lang
method context specializer
...
* Define the `jupyter-lang` method context specializer that
specializes against the kernel language of
`jupyter-current-client`
* Remove the kernel support API
* Replace the kernel support API with methods that can be
specialized using the `jupyter-lang` context specializer.
2018-10-25 23:17:09 -05:00
Nathaniel Nicandro
c0c9d8dd70
Ensure the return value of jupyter-org-prepare-result
has a non-nil car and cdr
2018-10-25 23:07:46 -05:00
Nathaniel Nicandro
a8231db79b
Rename jupyter-repl-current-client
to jupyter-current-client
...
Also move `jupyter-current-client` to `jupyter-client.el`
2018-10-25 23:07:46 -05:00
Nathaniel Nicandro
8bb43e6c68
Rename jupyter-repl-language
to jupyter-kernel-language
...
Also move `jupyter-kernel-language` to `jupyter-client.el`
2018-10-25 23:07:46 -05:00
Nathaniel Nicandro
d1588b2fd9
Define jupyter-completion-prefix
as a method to use it in different contexts
2018-10-25 23:07:04 -05:00
Nathaniel Nicandro
44d1af31bb
Generalize retrieving the code context
...
* Rename `jupyter-code-context-at-point` to `jupyter-code-context`
* Use `cl-defmethod` and specializers to handle the
different kinds of contexts
* Move the newly defined code context methods to their
appropriate locations
2018-10-25 22:57:33 -05:00
Nathaniel Nicandro
c070f2d04d
Update documentation and comments
2018-10-25 22:57:23 -05:00
Nathaniel Nicandro
deda7edea1
Silence byte compiler
2018-10-25 22:10:16 -05:00
Nathaniel Nicandro
414d124886
Rename jupyter-org--handle-data
to jupyter-org-prepare-and-add-result
2018-10-25 22:10:16 -05:00
Nathaniel Nicandro
9c99e5f2f9
Add jupyter-org-file-header-arg-p
2018-10-25 22:10:16 -05:00
Nathaniel Nicandro
23acb30759
Refactor jupyter-org-clear-request-id
to use the jupyter-org-request
fields
2018-10-25 22:10:16 -05:00
Nathaniel Nicandro
30db9a8b2b
Handle kernel differences in message sequence during execution
2018-10-16 13:55:57 -05:00
Nathaniel Nicandro
a0a9ac2910
Update documentation, purge stale comments
2018-10-16 13:55:50 -05:00
Nathaniel Nicandro
de9f85cc2e
Update documentation, cleanup comments
...
* Remove implementation details in documentation strings
* Canonicalize documentation of functions which perform similar operations.
2018-10-16 13:55:30 -05:00
Nathaniel Nicandro
55449c1d6a
Introduce jupyter-org-client
...
- A `jupyter-org-client` is a subclass of a `jupyter-repl-client` and replaces
the use of callbacks in `org-babel-execute:jupyter` to handle the insertion
of code block results in an `org-mode` buffer. `ob-jupyter.el` now only
contains the integration with `org-babel` and all integration with
`emcacs-jupyter` is placed in `jupyter-org-client.el`
- Introduce `jupyter-org-request`, which inherits all of the field of a
`jupyter-request` and adds the fields necessary for keeping track of the
source code block information a request was generated from during the
lifetime of the request.
2018-10-16 13:55:30 -05:00