Commit graph

16 commits

Author SHA1 Message Date
Nathaniel Nicandro
128a10c156 jupyter-org-insert-src-block: Simplify insertion of blank lines 2019-04-01 21:44:00 -05:00
Nathaniel Nicandro
6a1afa1623
jupyter-org-restart-and-execute-to-point: Make argument optional 2019-03-31 10:40:09 -05:00
Nathaniel Nicandro
03ead7392e
jupyter-org-insert-src-block: Avoid space at end of header line 2019-03-31 10:40:09 -05:00
Nathaniel Nicandro
2c005cab7b
jupyter-org-insert-src-block: Find the closest language to use
If `point' is not on a source block, look near `point' for a source block with
a Jupyter language and use that one.

Closes #66.
2019-03-29 00:37:38 -05:00
Nathaniel Nicandro
fbdbe60c95 Add jupyter-org-execute-subtree 2019-03-28 23:29:02 -05:00
Nathaniel Nicandro
7301d6a58c jupyter-org-execute-to-point: Be more aware of the kernel session 2019-03-28 23:29:02 -05:00
Nathaniel Nicandro
5c1643bf77
jupyter-org-jump-to-visible-block: Don't byte compile undefined macro
`avy-with` is a macro that might not be defined at compile time, but at the
same time we do not want to depend on `avy` so we have to ensure that we only
do byte compilation when first loading the function at run time.
2019-03-28 21:55:42 -05:00
Nathaniel Nicandro
67984994a8
jupyter-org-insert-src-block: Consider edge cases when preserving whitespace 2019-03-23 23:33:24 -05:00
Nathaniel Nicandro
7c2e32dfb4
jupyter-org-insert-src-block: Preserve whitespace when inserting src-block 2019-03-23 22:47:40 -05:00
Nathaniel Nicandro
83af335166
Bump version 2019-03-14 09:29:11 -05:00
Nathaniel Nicandro
7e0470c129
Fix indentation 2019-03-14 09:29:11 -05:00
Nathaniel Nicandro
f28d4a5400
Avoid recursive require when loading ob-jupyter
This can happen, e.g. when loading jupyter-org-client.el directly from source
since `org-element` requires `org`.
2019-03-14 09:29:11 -05:00
Nathaniel Nicandro
139949528c
jupyter-org-jump-to-block: Consider nil context 2019-03-14 02:33:03 -05:00
Nathaniel Nicandro
75648917cb
jupyter-org-select-block-and-results -> jupyter-org-src-block-bounds 2019-03-14 02:28:30 -05:00
Nathaniel Nicandro
23481e1d51
Add jupyter-org-inspect-src-block 2019-03-14 02:28:25 -05:00
UndeadKernel
d065b2f25c Port scimax's source block helper functions (#45)
* Port scimax's org facility functions

We provide a hydra to easily use the functions.
By default, the binding to call the hydra is `C-c h`
The hydra is only created if the hydra package is loaded.

* Move org extensions to its own file.

* Integrate revision comments

* Replaced manual placement of src blocks with
`org-element-interpret-data`
* Refactor some functions

* Add a hydra to `jupyter-org-interaction-mode-map`

Only actually define the Hydra if the package `hydra` exists.

* Refactor org extension functions.

* org-extensions: refactor and cleanup

* Remove compiler warnings
* Change condition-case for ignore-errors
* Functions that restart the kernel now work
* Use ivy and avy functions only if package exists

* org-extensions: change hydra bindings

* Match the hydra bindings better to emacs conventions

* org-extensions: improvements and code refactoring

* add where external functions should be found
* take into account empty RESULTS when moving blocks

* org-extensions: use context variable for jumping

* org-extensions: improve jumping to block function

* Set a default variable to specify how many lines of context to show
* Consider the case when a user supplies the nil value
2019-03-14 02:26:30 -05:00