[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Suppressing interpeter output in code blocks
From: |
Michael Steeves |
Subject: |
[O] Suppressing interpeter output in code blocks |
Date: |
Wed, 05 Jun 2013 16:01:56 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 |
Apologies if this is documented somehere, but I haven't been having much
luck in trying to find the answer to this.
If I have an org doc with some python code in it
#+begin_src python :session testing :results output
a = 1
b = 2
c = a + b
print "Hello, world."
#+end_src
when I evaluate the block, the output is
#+RESULTS:
: Python 2.7.5 (default, May 19 2013, 13:26:46)
: [GCC 4.2.1 Compatible Apple Clang 4.1 ((tags/Apple/clang-421.11.66))]
on darwin
: Type "help", "copyright", "credits" or "license" for more information.
: >>> >>> Hello, world.
Is there any way to suppress all the extra text, and just get the
"Hello, world." string as my output?
-Mike
--
Michael Steeves (address@hidden)
- [O] Suppressing interpeter output in code blocks,
Michael Steeves <=