Reputation: 924
I have python source code in emacs org-mode. I only want to export the output of python code to the ODT not the source code. How could I do that?
Here is my test code. When I do the export, only the source code in my ODT file.
#+BEGIN_SRC python :results output :export result
import pprint
test_dict = {
'a':1,
'b':2,
'c':3,
"nested": {
"n_a":1,
"n_b":2,
"n_c":3
}
}
pprint.pprint(test_dict, indent=2, width=1)
#+END_SRC
#+RESULTS:
: { 'a': 1,
: 'b': 2,
: 'c': 3,
: 'nested': { 'n_a': 1,
: 'n_b': 2,
: 'n_c': 3}}
Upvotes: 1
Views: 363
Reputation:
You will need to set :exports
header to results
. Here is a link to the org-mode
describing the header.
Upvotes: 1