ob: python: Don't bother removing echoed output in value mode
* lisp/ob-python.el (org-babel-python-evaluate-session): Pass nil as remove-echo part of META argument to `org-babel-comint-with-output' The regexp matching involved in this procedure can fail on large input data, so we only do it when necessary (i.e. output mode).
This commit is contained in:
parent
a8f2163d76
commit
8e4b9b3a6a
|
@ -265,7 +265,7 @@ last statement in BODY, as elisp."
|
||||||
(org-babel-python-table-or-string results)))
|
(org-babel-python-table-or-string results)))
|
||||||
(let ((tmp-file (org-babel-temp-file "python-")))
|
(let ((tmp-file (org-babel-temp-file "python-")))
|
||||||
(org-babel-comint-with-output
|
(org-babel-comint-with-output
|
||||||
(session org-babel-python-eoe-indicator t body)
|
(session org-babel-python-eoe-indicator nil body)
|
||||||
(let ((comint-process-echoes nil))
|
(let ((comint-process-echoes nil))
|
||||||
(input-body body)
|
(input-body body)
|
||||||
(dump-last-value tmp-file (member "pp" result-params))
|
(dump-last-value tmp-file (member "pp" result-params))
|
||||||
|
|
Loading…
Reference in New Issue