emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rodrigo Amestica <ramestica@lavabit.com>
To: emacs-orgmode@gnu.org
Cc: Rodrigo Amestica <ramestica@lavabit.com>
Subject: are babel python sessions and inlined images incompatible?
Date: Tue, 23 Apr 2013 00:10:40 -0400	[thread overview]
Message-ID: <ybi7gjtkhtr.wl%ramestica@lavabit.com> (raw)


if I use this block

#+BEGIN_SRC python :results file
from pylab import *
return 'images/test.png'

then the RESULTS block shows me an inlined version of the plot.

If now I switch to this block

#+BEGIN_SRC python :session test :results file
from pylab import *
return 'images/test.png'

then the RESULTS block does not show the inlined plot but this

| <matplotlib.lines.Line2D | object | at | 0x35c0650> |

Using a session is kind of mandatory for me because I need several blocks to
share variables.

Is there something evidently wrong with my approach?


             reply	other threads:[~2013-04-23  4:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-23  4:10 Rodrigo Amestica [this message]
2013-04-23 13:29 ` Eric Schulte
2013-04-23 22:17   ` Rodrigo Amestica
2013-04-24 21:06     ` Sebastien Vauban
2013-04-24 23:33       ` Rodrigo Amestica
2013-04-25  7:40         ` Sebastien Vauban
2013-04-25 16:27           ` Thomas S. Dye
2013-04-26 13:21             ` Sebastien Vauban
2013-04-26 22:13               ` Rasmus
2013-04-27  6:27               ` Achim Gratz
2013-04-27  6:40                 ` Sebastien Vauban

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ybi7gjtkhtr.wl%ramestica@lavabit.com \
    --to=ramestica@lavabit.com \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: are babel python sessions and inlined images incompatible?' \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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


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