Wizard
Wizard

Reputation: 22113

redirect the error to results within org src

I am writing a demonstrate some errors reported within org src

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

It report ZeroDivisionError in a fresh buffer

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

ZeroDivisionError: division by zero

The errors then be manually copied to the org as a results to demonstrate.

How could redirect to errors to results as &> a_file does?

Upvotes: 3

Views: 46

Answers (1)

Related Questions