New answers tagged

0 votes

__PYTHON_EL_eval_file prints in interpreter when sending python file from buffer using C-x C-l

This is a modified version of guibor's answer. It does the same thing but with basic Elisp: (defun python-comint-filter (output) (replace-regexp-in-string "__PYTHON_EL_eval.+\n" "&...
Victor's user avatar
  • 1
0 votes

How to evaluate python code in org-mode when only python3 is provided by the package manager?

(use-package ob-python :custom (org-babel-python-command "python3")) #+begin_src emacs-lisp :exports results :results none (use-package ob-python :custom (org-babel-python-command "...
mxnt's user avatar
  • 686
2 votes

use output of python code block from other python code block

The default :results header is value. So, org gets the value by wrapping the code in a function definition in the language of the source block. Code should execute like a function and return a value. ...
Saravana's user avatar
  • 2,071

Top 50 recent answers are included