Michael Steeves <stee...@raingods.net> writes: > 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? >
#+begin_src python :session testing a = 1 b = 2 c = a + b "Hello, world." #+end_src #+RESULTS: : Hello, world. Best, -- Eric Schulte http://cs.unm.edu/~eschulte