0

I was wondering if it is possible to export command outputs right after the commands in the org-mode. So instead of:

#+BEGIN_SRC python :results output :exports results
print(1)
print('a')
#+END_SRC

#+RESULTS:
: 1
: a

the results should be:

#+RESULTS:
print(1)
1
print('a')
a

I think not much can be done from the Emacs side as Org mode simply captures the standard output from Python interpreter. I wonder if the Python interpreter can be made to echo the commands as well as the output.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.