将错误重定向到org src中的结果

问题描述 投票:3回答:1

我正在编写演示org src中报告的一些错误

#+begin_src ipython :session alinbx :results output
11 / 0
#+end_src

它在新缓冲区中报告ZeroDivisionError

ZeroDivisionErrorTraceback (most recent call last)
<ipython-input-1-184a5c9f162a> in <module>
      1 # report
----> 2 11 / 0

ZeroDivisionError: division by zero

然后将错误作为结果手动复制到组织中。

如何像&> a_file那样将错误重定向到结果?

emacs org-mode org-babel
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.