emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] are babel python sessions and inlined images incompatible?


From: Sebastien Vauban
Subject: Re: [O] are babel python sessions and inlined images incompatible?
Date: Sat, 27 Apr 2013 08:40:14 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3 (windows-nt)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]