mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-05 23:41:38 -05:00
Consider results in a results drawer
This commit is contained in:
parent
357584613b
commit
a882a68489
1 changed files with 6 additions and 1 deletions
|
@ -102,7 +102,12 @@ ELEM is the results of a source block if the current cell being
|
||||||
processed in INFO is a code cell, ELEM has a RESULTS affiliated
|
processed in INFO is a code cell, ELEM has a RESULTS affiliated
|
||||||
keyword, and ELEM passes `jupyter-org-babel-result-p'."
|
keyword, and ELEM passes `jupyter-org-babel-result-p'."
|
||||||
(and (jupyter-notebook--code-cell-p info)
|
(and (jupyter-notebook--code-cell-p info)
|
||||||
(org-element-property :results elem)
|
;; If ELEM is associated with a #+RESULTS: keyword, it is considered a
|
||||||
|
;; result
|
||||||
|
(cl-loop
|
||||||
|
with el = elem
|
||||||
|
while el thereis (org-element-property :results el)
|
||||||
|
do (setq el (org-element-property :parent el)))
|
||||||
(or (jupyter-org-babel-result-p elem)
|
(or (jupyter-org-babel-result-p elem)
|
||||||
;; TODO: Isn't a result drawer also a babel result?
|
;; TODO: Isn't a result drawer also a babel result?
|
||||||
(jupyter-notebook--result-drawer-p elem))))
|
(jupyter-notebook--result-drawer-p elem))))
|
||||||
|
|
Loading…
Add table
Reference in a new issue