emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Extraneous output from Python code blocks using :session option
@ 2015-03-11  3:38 Richard Stanton
  2015-03-11 18:29 ` Kyle Meyer
  0 siblings, 1 reply; 12+ messages in thread
From: Richard Stanton @ 2015-03-11  3:38 UTC (permalink / raw)
  To: emacs-orgmode

I'm trying to use the :session option so I can import modules, etc., just once at the beginning of my document, like with am IPython notebook. Unfortunately, the output from these code blocks contains some extraneous characters. For example:

#+BEGIN_SRC python :session :results output
a = 2
b = 3
c = 4
print 'a=      ', a
print 'b =     ', b
print 'a + b = ', a+b
#+END_SRC

#+RESULTS:
: 
: >>> >>> a=       2
: b =      3
: a + b =  5

How can I stop the production of all those ">" signs (sometimes they're dots), which don't appear if I run the same code block without the :session option?

Thanks.

Richard Stanton

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

end of thread, other threads:[~2015-03-16  0:40 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-11  3:38 Extraneous output from Python code blocks using :session option Richard Stanton
2015-03-11 18:29 ` Kyle Meyer
2015-03-11 18:54   ` Richard Stanton
2015-03-12 15:17   ` John Kitchin
2015-03-12 15:34     ` Richard Stanton
2015-03-12 21:23       ` Kyle Meyer
2015-03-13  6:58         ` Kyle Meyer
2015-03-13  8:21           ` Nicolas Goaziou
2015-03-13 14:40             ` Kyle Meyer
2015-03-14  8:26               ` Nicolas Goaziou
2015-03-16  0:40                 ` Kyle Meyer
2015-03-12 21:21     ` Kyle Meyer

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).