emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Suppressing interpeter output in code blocks
@ 2013-06-05 20:01 Michael Steeves
  2013-06-06 16:04 ` Eric Schulte
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Steeves @ 2013-06-05 20:01 UTC (permalink / raw)
  To: Orgmode Mailing List

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 (steeves@raingods.net)

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-06-06 18:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-05 20:01 Suppressing interpeter output in code blocks Michael Steeves
2013-06-06 16:04 ` Eric Schulte
2013-06-06 18:08   ` Michael Steeves
2013-06-06 18:28     ` Eric Schulte

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).