emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Suppressing interpeter output in code blocks


From: Eric Schulte
Subject: Re: [O] Suppressing interpeter output in code blocks
Date: Thu, 06 Jun 2013 10:04:33 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Michael Steeves <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]