Commit graph

71 commits

Author SHA1 Message Date
Nathaniel Nicandro
162d047e62 Add section on how to run tests in README
Closes #239
2021-11-20 10:53:09 -06:00
Nathaniel Nicandro
19aab43b9e Fix link in README 2021-11-20 10:14:58 -06:00
Nathaniel Nicandro
1a5ec3171f README Changes 2021-04-02 12:14:22 -05:00
Tim Quelch
6ce8d01e3a Fix minor typo (resourse -> resource) 2021-01-15 20:57:19 -06:00
Nathaniel Nicandro
360cae2c70 Update README 2020-08-02 12:46:52 -05:00
Nathaniel Nicandro
6baecc9a90 Reduce number of arguments of jupyter-org-result
This groups the DATA and METADATA argument of `jupyter-org-result`
into a CONTENT argument to finish up a change made in a previous
commit that removed `jupyter-loop-over-mime`.  The METADATA argument
is rarely if every used, so it doesn't make sense to have all those
method implementations have to provide it.

* jupyter-org-client.el
(jupyter-org--image-result): Change group DATA and METADATA into a
CONTENT argument.  Change argument ordering.  Update all callers.
Cleanup the documentation to reflect the changes.
(jupyter-org-result): Similarly, group those two arguments into the
one argument.  Update all callers in this file, also...

* README.org: ...here

* jupyter-R.el: ...here

* jupyter-python.el: ...and here
2020-04-14 17:05:28 -05:00
Nathaniel Nicandro
587ed4e029 Keep uppercase characters in kernel language names
Converting to lowercase was done arbitrarily.  So that one could write
`(jupyter-lang wolfram-language)` instead of
`(jupyter-lang Wolfram-Language)`.

fixes #241

* CHANGELOG.org: Add note.

* README.org: Update relevant sections.

* jupyter-base.el (jupyter-canonicalize-language-string): Do it.

* ob-jupyter.el (org-babel-jupyter-aliases-from-kernelspecs):
2020-04-09 11:33:57 -05:00
Nathaniel Nicandro
a4e0616ed4 Revert commits making ZMQ optional
These commits were pre-maturely pushed to master.

This reverts commits:

    - 3322ce7b31
    - ee8b5180e5
    - 8883a6631a
    - ae5dad9796
    - 0e202a02fa
    - 5725215268
    - 3b3e358933
    - a5f8d991b0
    - 1a739feec7
    - 4115ff5f73
2020-04-02 10:48:44 -05:00
Nathaniel Nicandro
1a739feec7 Add section on jupyter-comm-layer in README
* README.org: Do it.
2020-03-30 23:31:14 -05:00
Nathaniel Nicandro
4115ff5f73 Rework "Waiting for messages" section in README
* README.org: Do it.
2020-03-30 23:31:14 -05:00
Nathaniel Nicandro
1c45c3226b Mass rename of jupyter-comm-layer related functions
The following changes are made:

    `jupyter-initialize-connection` -> `jupyter-comm-initialize`
    `jupyter-connect-client` -> `jupyter-comm-add-handler`
    `jupyter-disconnect-client` -> `jupyter-comm-remove-handler`
    `jupyter-comm-client-loop` -> `jupyter-comm-handler-loop`

* README.org: Do it.

* jupyter-channel-ioloop-comm: Do it.

* jupyter-client.el: Do it.

* jupyter-comm-layer.el: Do it.
(jupyter-comm-layer): Rename `clients` slot to `handlers`. Update all uses.

* jupyter-kernel-process-manager.el: Do it.

* jupyter-repl.el: Do it.

* jupyter-server.el: Do it.

* jupyter-zmq-channel-comm.el: Do it.

* test/jupyter-server-test.el: Do it.

* test/jupyter-test.el: Do it.
2020-03-29 03:08:53 -05:00
Nathaniel Nicandro
308a4779d8 Handle variations in kernelspec language names more smoothly
* README.org: Add notes on behavior when a kernel's language name has spaces
  and uppercase characters.

* jupyter-base.el (jupyter-canonicalize-language-string): New function.

* jupyter-client.el (jupyter-kernel-info): Use it.

* jupyter-kernelspec.el (jupyter-available-kernelspecs): Use it.

* ob-jupyter.el (org-babel-jupyter-aliases-from-kernelspecs): Use it.

* test/jupyter-test.el (jupyter-canonicalize-language-string): New test.
2020-03-13 00:09:28 -05:00
Yuji Nakao
f5560e56f6 Fix minor typo 2019-09-14 13:09:38 -05:00
Nathaniel Nicandro
2df28f2d9c README.org: Update TOC 2019-09-13 01:36:13 -05:00
Nathaniel Nicandro
91957986e1 Evaluation overlays
* README.org: Add section on `jupyter-eval-use-overlays`, minor formatting fix

* jupyter-client.el (jupyter-eval-overlay): New face.
(jupyter-eval-use-overlays, jupyter-eval-overlay-prefix): New custom variables.
(jupyter--display-eval-result): Remove function.
(jupyter-eval): Use `jupyter-eval-string`.
(jupyter-eval-result-callbacks): New function.
(jupyter-eval-add-callbacks): Result callbacks now obtained from
`jupyter-eval-result-callbacks`, only add callbacks for non-result message
types. Allow `beg` and `end` arguments remove `result-cb` argument, update all
callers.
(jupyter-eval-string): Allow `beg` and `end` arguments remove `cb` argument,
update all callers.
(jupyter-eval-string-command): Remove `cb` argument, update all callers.
(jupyter-eval-region): Ditto.
(jupyter-eval-line-or-region): Refactor.
(jupyter-eval-overlay-keymap): New keymap.
(jupyter-eval-ov--delete, jupyter-eval-ov--remove-all)
(jupyter-eval-ov--propertize, jupyter-eval-ov--fold-boundary)
(jupyter-eval-ov--expand-string, jupyter-eval-ov--make)
(jupyter-eval-ov--expand, jupyter-eval-ov--fold)
(jupyter-eval-toggle-overlay, jupyter-eval-remove-overlays)
(jupyter-eval-display-overlay, jupyter-eval-display-with-overlay-p): New
functions.

* jupyter-repl.el (jupyter-eval-string): Ensure callbacks are added in the
original (non-REPL) buffer the command was called from. So that
`jupyter-eval-display-with-overlay-p`, indirectly called by
`jupyter-eval-add-callbacks`, works.
(jupyter-repl-interaction-mode-map): Set `C-c C-o` binding to
`jupyter-eval-remove-overlays`.
2019-08-24 21:28:58 -05:00
Nathaniel Nicandro
388d7b923c Add Gitter badge 2019-08-02 13:58:41 -05:00
Nathaniel Nicandro
4e3a8d4dc2 README.org: Mention jupyter-api-authentication-method 2019-07-31 14:28:01 -05:00
Nathaniel Nicandro
a7da89eae4 README.org: Mention naming notebook server kernels 2019-07-24 16:59:04 -05:00
Nathaniel Nicandro
81797ccbb5 Mention server kernel list keybindings in README
Co-Authored-By: Deepak Cherian <dcherian@users.noreply.github.com>
2019-07-24 16:59:04 -05:00
Nathaniel Nicandro
b955f6a40b Add README section on notebook server support 2019-07-24 16:59:04 -05:00
Nathaniel Nicandro
1d282c948a Support kernel servers via org-mode source blocks 2019-07-24 16:59:04 -05:00
Ruslan
7918293c41 Added warning to README.org about possible conflicts with ob-ipython (#135) 2019-07-24 12:50:41 -05:00
Nathaniel Nicandro
f906e62ed0 Simplify wording in README 2019-07-17 15:53:14 -05:00
Nathaniel Nicandro
4c3168d53f Add jupyter-server-mode-set-client
This is an attempt at associating a REPL client with a buffer which was created
by emacsclient.
2019-06-30 12:36:41 -05:00
Nathaniel Nicandro
aedd0d41d6 Update README 2019-06-30 12:22:26 -05:00
Nathaniel Nicandro
40ee1ac8b9 Add new customizable variable jupyter-repl-echo-eval-p
Closes #71
2019-06-08 13:47:13 -05:00
Nathaniel Nicandro
fdaf7719d8 Fix README badges 2019-05-23 17:12:15 -05:00
Nathaniel Nicandro
4960b81196 Add Appveyor badge 2019-05-23 17:07:36 -05:00
Nathaniel Nicandro
0b970e857d Add jupyter-eval-short-result-max-lines to README 2019-05-21 18:43:45 -05:00
Nathaniel Nicandro
b5ea944d05 Update README and CHANGELOG 2019-05-20 22:46:46 -05:00
Nathaniel Nicandro
b715ada492 Always name method arguments
If method arguments are not named it gives rise to errors like

    `Args out of range: "", 0`

that originate in `help-function-arglist` when calling `describe-function` on
those methods.
2019-05-09 13:32:45 -05:00
Nathaniel Nicandro
112769e0c6
Bump version 2019-05-04 03:31:50 -05:00
jackkamm
748598b7be Add pandoc conversion of rich outputs (#97) 2019-04-28 15:17:19 -05:00
Nathaniel Nicandro
923e30e0f7
Update section in README about how to start a remote kernel
Closes #86
2019-04-10 09:44:43 -05:00
Nathaniel Nicandro
c3e67281f1
Add TOC in README 2019-03-28 14:31:17 -05:00
Nathaniel Nicandro
52253f4f84
README.org: Add note about Emacs module support 2019-03-16 14:39:28 -05:00
Nathaniel Nicandro
6eb86f0a52
README.org: Fix confusing wording 2019-03-13 18:24:37 -05:00
Nathaniel Nicandro
8f304e5b66
README.org: Add note about ob-async integration 2019-03-12 17:53:14 -05:00
Nathaniel Nicandro
98e4bd29d2
README.org: Add note about language support files 2019-03-12 14:28:46 -05:00
Nathaniel Nicandro
dbfcac1c90
Add org-babel-jupyter-override-src-block
Closes #41.
2019-03-01 18:09:27 -06:00
Nathaniel Nicandro
f25a9b6070
Update README on src-block header arguments 2019-02-22 08:48:24 -06:00
UndeadKernel
92d1d661c9 feature: Specify mime precedence using ":display" in org source blocks (#17)
A BEGIN_SRC block can specify which mime type to display by enabling the
user to manually set the priority order of mime types.

e.g.: In the following, :text/plain will be used before considering :text/html
#+BEGIN_SRC jupyter-python :display plain html
2019-02-22 07:56:22 -06:00
Nathaniel Nicandro
9aa58ebce2
Update obsolete documentation on client channels 2019-02-13 09:25:17 -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
e95f3bf3eb
Reword some parts of the README 2019-02-10 02:41:42 -06:00
Nathaniel Nicandro
f716de5a67 Update README
Close #15.
2019-02-09 14:35:00 -06:00
Nathaniel Nicandro
2d31af6aa7
Update README 2019-02-07 13:34:36 -06:00
Nathaniel Nicandro
3d6f3234e4
Update README 2019-01-13 22:19:25 -06:00
Nathaniel Nicandro
37b80ddbcd
Fix some typos and formatting issues 2019-01-12 20:57:22 -06:00
Adam B
fc4d2c3487 Cleanup table of keybindings for jupyter-repl-interaction-mode (#7)
Misnamed function and duplicate entry removed. Functions of form
jupyter-repl-eval-* were updated in README to point to new form jupyter-eval-*.
2019-01-10 23:07:00 -06:00