Nathaniel Nicandro
9fcfcdd32c
Rename no-execute
to delay-eval
in org-babel-prep-session:jupyter
2018-10-25 22:10:16 -05:00
Nathaniel Nicandro
51131cde63
Pass the request object to org-babel-jupyter-clear-file-param
2018-10-25 22:10:16 -05:00
Nathaniel Nicandro
7d30fe0615
Pass the right arguments to jupyter-send-execute-request
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
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
Nathaniel Nicandro
bbb677c573
Pop up traceback buffer on errors when executing code blocks
2018-10-16 13:55:30 -05:00
Nathaniel Nicandro
892ab84148
Silence byte compiler warnings
2018-10-16 13:55:30 -05:00
Nathaniel Nicandro
23cecb9c0f
[WIP] Widget support in ob-jupyter
2018-10-16 13:55:30 -05:00
Nathaniel Nicandro
c207bea8d4
Fix indentation
2018-08-30 18:02:25 -05:00
Nathaniel Nicandro
22b1e809a0
Update documentation, cleanup comments
2018-08-30 18:02:13 -05:00
Nathaniel Nicandro
c357ee9c00
Avoid unnecessary work, remove improper usage of variable in ob-jupyter
...
- Do not add callbacks if source code block has no results
- Remove improper use of language argument to `org-babel-insert-result`
2018-05-28 01:25:01 -05:00
Nathaniel Nicandro
8a2468973e
Fix wrong order of variable names
2018-05-16 20:46:10 -05:00
Nathaniel Nicandro
3b3fe9c43f
jupyter-<type>
-> jupyter-send-<type>
where appropriate
2018-05-16 12:25:57 -05:00
Nathaniel Nicandro
ffb84c5354
Slight refactor of org-babel-execute:jupyter
2018-05-15 16:45:26 -05:00
Nathaniel Nicandro
62e63412de
Tiny changes
2018-05-15 16:45:26 -05:00
Nathaniel Nicandro
7d7b7650b9
Mainly code style changes
2018-05-15 16:45:24 -05:00
Nathaniel Nicandro
670611ded1
Update code comments and documentation
2018-05-15 16:45:24 -05:00
Nathaniel Nicandro
9ee557f6e5
Small changes to org-babel-jupyter-prepare-result
2018-05-15 16:45:23 -05:00
Nathaniel Nicandro
c3b897bae3
Refactor org-babel-jupyter-file-name
2018-05-15 16:45:23 -05:00
Nathaniel Nicandro
ff47cc6812
Refactor org-babel-jupyter-initiate-session-by-key
2018-05-15 16:45:23 -05:00
Nathaniel Nicandro
b6cfb0aac1
Attempt to convert scalar strings into tables in org-babel-jupyter--transform-result
2018-05-15 16:45:23 -05:00
Nathaniel Nicandro
ae7ef51607
Run org-babel-after-execute-hook
after async execution finishes
2018-05-15 16:45:23 -05:00
Nathaniel Nicandro
8e9569ac3e
Handle errors properly for file results
2018-05-15 16:45:23 -05:00
Nathaniel Nicandro
eb001c3e83
Rename id-cleared
to first-async-insertion
2018-05-15 16:45:23 -05:00
Nathaniel Nicandro
59ea82f066
Properly insert the execution ID before async file results are available
2018-05-15 16:45:23 -05:00
Nathaniel Nicandro
b01e4c024b
Handle injection of render parameters more intelligently
2018-05-15 16:45:23 -05:00
Nathaniel Nicandro
fa219fa9f8
Generalize insertion of image results in org-babel-jupyter-prepare-result
2018-05-15 16:45:22 -05:00
Nathaniel Nicandro
bcd45b6db4
Tiny refactors/optimizations
2018-05-13 12:11:08 -05:00
Nathaniel Nicandro
c65a842b45
Add org-babel-jupyter-scratch-buffer
2018-05-13 12:11:07 -05:00
Nathaniel Nicandro
979cac9848
Handle :results none
2018-04-19 01:43:41 -05:00
Nathaniel Nicandro
ef69521202
Update documentation and comments
2018-02-12 11:06:09 -06:00
Nathaniel Nicandro
255247788c
Remove uses of seq
functions
...
Since this is an emacs 25 dependency and there were not many uses of these
functions, remove them.
2018-02-09 09:11:57 -06:00
Nathaniel Nicandro
58f1135262
Add a way to transform kernel results based on kernel language
...
For example for python kernels, we would like to convert results to tables if
they look like a table.
2018-02-08 14:15:27 -06:00
Nathaniel Nicandro
a2decc7baf
Selectively inhibit REPL handlers when executing a Jupyter src-block
...
This allows the REPL client to preserve the execution state of the kernel
while `org-babel-execute:jupyter` takes care of all of the output generated by
the kernel without having to preserve the state of the REPL.
2018-02-08 13:44:40 -06:00
Nathaniel Nicandro
e032285f9a
[WIP] Make ob-jupyter
unaware of the REPL buffer
...
Try not to modify the REPL buffer in any way from `ob-jupyter` except for
inserting a code cell.
2018-02-07 17:28:33 -06:00
Nathaniel Nicandro
dc7c1e00e8
More generic extraction of image data from html image
2018-02-07 17:26:25 -06:00
Nathaniel Nicandro
48c07e1f04
Do nothing when there is no render parameter when clearing/injecting one
2018-02-06 17:46:47 -06:00
Nathaniel Nicandro
5f902e1593
Remove unused code
2018-02-06 17:46:07 -06:00
Nathaniel Nicandro
a28952c643
Silence byte compiler
2018-02-06 17:45:53 -06:00
Nathaniel Nicandro
85efbf9c04
Refactor org-babel-jupyter-prepare-result
...
- Return the correct result when HTML contains only image data
- Still need to handle all possible cases of the data URL scheme
- Add `org-babel-jupyter--image-result`
2018-02-06 16:49:48 -06:00
Nathaniel Nicandro
a94c6cc4c6
Remove redundancy in org-babel-execute:jupyter
2018-02-04 18:06:55 -06:00
Nathaniel Nicandro
8784b9fcc3
Update comments and documentation
2018-02-04 17:58:11 -06:00
Nathaniel Nicandro
74ccc47a6e
Get the kernel language from the kernel-info slot of a jupyter-kernel-client
2018-02-04 17:41:13 -06:00
Nathaniel Nicandro
c6d78872cb
Refactor the injection of render parameters when inserting results
2018-02-04 17:40:01 -06:00
Nathaniel Nicandro
84cf20c863
Simplify adding results
2018-02-04 17:38:24 -06:00
Nathaniel Nicandro
0dec139a3a
Simplify synchronous output in org-babel-execute:jupyter
2018-02-04 17:36:29 -06:00
Nathaniel Nicandro
9fa2d34ec5
Add org-babel-jupyter-aliases-from-kernelspecs
2018-02-04 17:35:34 -06:00
Nathaniel Nicandro
7bc3021302
Unset require-final-newline
when writing image files
2018-02-04 00:01:02 -06:00
Nathaniel Nicandro
1a4739fa19
Save the match data when searching html results
2018-02-03 23:48:42 -06:00
Nathaniel Nicandro
b680aee309
Set the default header args for Jupyter src block aliases
2018-02-03 23:48:14 -06:00