emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sebastien Vauban" <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: are babel python sessions and inlined images incompatible?
Date: Sat, 27 Apr 2013 08:40:14 +0200	[thread overview]
Message-ID: <86bo90zdbl.fsf@somewhere.org> (raw)
In-Reply-To: <87k3noo5cr.fsf@Rainer.invalid>

Hi Achim,

Achim Gratz wrote:
> Sebastien Vauban writes:
>> Would we want to abstract the above, I guess we should generalize the
>> languages families as:
>>
>> - graphics-only languages (ditaa, dot, gnuplot, etc.)
>>
>> - general-purpose languages with graphical capacities (R, maxima, octave...
>>   and, at least, python[1] IIUC)
>>
>> - general-purpose languages without graphical capacities (sql, sh, etc.)
>
> This is something of a non-starter as all generalizations are false.
>
> Babels notion of graphics is simply that after execution of the source
> block it expects to be able to find a file that looks like it has a
> graphics format in it (and its notion of results is that it gets
> something from standard output that conforms to certain rules that are
> changeable by header arguments).
>
> A "graphics-only" language would be one that could only write files, but
> Babel can easily transcend that limitation and pretend it had gotten a
> result instead.  It might even filter the result to convert between
> formats.  Conversely, a language that cannot write files could have an
> implementation where Babel constructs the file to put in the graphics
> link in Org from the output of the program.  Existing Babel language
> implementations already use both mechanisms.

My idea was simply to ensure that all similar languages share the same set of
header arguments, which is not the case, as of today, with python (no support
for ":results graphics").

But I get your point.

Best regards,
  Seb

-- 
Sebastien Vauban

      reply	other threads:[~2013-04-27  6:40 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-23  4:10 Rodrigo Amestica
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 [this message]

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  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=86bo90zdbl.fsf@somewhere.org \
    --to=sva-news-d0wtavr13harg/idocfnwg@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
    --subject='Re: are babel python sessions and inlined images incompatible?' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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:

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