#+begin_src python :session :results output
print("yes")
#+end_src
With org-babel-execute-src-block
command, the result is:
#+RESULTS:
: __PYTHON_EL_eval("try:\n with open('/var/folders/hh/lnftkrwn1tv9b63ptnphj_gm0000gp/T/babel-ww4KL0/python-AICyg8') as __org_babel_python_tmpfile:\n exec(compile(__org_babel_python_tmpfile.read(), __org_babel_python_tmpfile.name, 'exec'))\nexcept:\n raise\nfinally:\n print('
not "yes".
:results value
is behaved as expected.
Version:
GNU Emacs 28.1 (build 1, x86_64-apple-darwin19.6.0, Carbon Version 162 AppKit 1894.6)
of 2022-04-28
org mode 9.5.3
org-babel-execute-src-block