From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Suppressing interpeter output in code blocks Date: Thu, 06 Jun 2013 10:04:33 -0600 Message-ID: <87a9n36x9q.fsf@gmail.com> References: <51AF9934.6000009@raingods.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55605) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ukcgp-0006sr-C2 for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 12:05:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ukcgm-0007t0-K4 for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 12:05:27 -0400 Received: from mail-pd0-f169.google.com ([209.85.192.169]:34467) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ukcgm-0007sq-Bb for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 12:05:24 -0400 Received: by mail-pd0-f169.google.com with SMTP id y10so3580400pdj.28 for ; Thu, 06 Jun 2013 09:05:23 -0700 (PDT) In-Reply-To: <51AF9934.6000009@raingods.net> (Michael Steeves's message of "Wed, 05 Jun 2013 16:01:56 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Michael Steeves Cc: Orgmode Mailing List Michael Steeves 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