emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Achim Gratz <Stromeko@nexgo.de>
To: emacs-orgmode@gnu.org
Subject: Re: are babel python sessions and inlined images incompatible?
Date: Sat, 27 Apr 2013 08:27:48 +0200	[thread overview]
Message-ID: <87k3noo5cr.fsf@Rainer.invalid> (raw)
In-Reply-To: <86bo911l7j.fsf@somewhere.org>

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.

+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptation for Waldorf Blofeld V1.15B11:

  parent reply	other threads:[~2013-04-27  6:28 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 [this message]
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=87k3noo5cr.fsf@Rainer.invalid \
    --to=stromeko@nexgo.de \
    --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).