emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Kitchin <jkitchin@andrew.cmu.edu>
To: Matt Huszagh <huszaghmatt@gmail.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: preview src blocks that generate image files
Date: Sun, 26 Jan 2020 07:29:47 -0500	[thread overview]
Message-ID: <CAJ51EToioSxPPHM_1Afq1389MqPoapfd6mi8MiEd+YdwDHYm+A@mail.gmail.com> (raw)
In-Reply-To: <874kwimycm.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1475 bytes --]

How would you handle source blocks that generate many figures? In iPython,
for example this happens pretty easily. I guess you are thinking about
blocks with a :file output or something though?

Once a preview was on it, would you have to C-c C-x C-v to toggle it off to
edit it? I have explored a few different approaches with latex fragments,
like clicking on it would turn the preview off, or entering it to turn it
off.

What would trigger putting the image preview on? Running C-c C-c on a
block? something more manual?

I guess you have a use case where this makes sense, but you can already see
an image preview on a link output, and there are ways to have the source
blocks be in other places in a document than where the results are.

Maybe for some src blocks like graphiz, or gnuplot where they more or less
only produce one graphic this idea could be a good one.

John

-----------------------------------
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



On Sun, Jan 26, 2020 at 3:11 AM Matt Huszagh <huszaghmatt@gmail.com> wrote:

> Hi,
>
> I'm considering adding the ability to display an image preview overlay of
> source blocks that generate an image file, much in the same way that
> latex fragments can be previewed.
>
> Is anyone else interested in this feature? Any general thoughts/feature
> requests?
>
> Matt
>
>

[-- Attachment #2: Type: text/html, Size: 2199 bytes --]

      parent reply	other threads:[~2020-01-26 12:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-26  8:11 preview src blocks that generate image files Matt Huszagh
2020-01-26  9:35 ` Fraga, Eric
2020-01-26 12:29 ` John Kitchin [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=CAJ51EToioSxPPHM_1Afq1389MqPoapfd6mi8MiEd+YdwDHYm+A@mail.gmail.com \
    --to=jkitchin@andrew.cmu.edu \
    --cc=emacs-orgmode@gnu.org \
    --cc=huszaghmatt@gmail.com \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).