From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: preview src blocks that generate image files Date: Sun, 26 Jan 2020 07:29:47 -0500 Message-ID: References: <874kwimycm.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000021ac54059d0a26b8" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:53862) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ivh3C-00051e-0d for emacs-orgmode@gnu.org; Sun, 26 Jan 2020 07:30:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ivh3A-0005kH-MU for emacs-orgmode@gnu.org; Sun, 26 Jan 2020 07:30:01 -0500 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]:34007) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ivh3A-0005jz-70 for emacs-orgmode@gnu.org; Sun, 26 Jan 2020 07:30:00 -0500 Received: by mail-wr1-x436.google.com with SMTP id t2so7599273wrr.1 for ; Sun, 26 Jan 2020 04:30:00 -0800 (PST) In-Reply-To: <874kwimycm.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: Matt Huszagh Cc: "emacs-orgmode@gnu.org" --00000000000021ac54059d0a26b8 Content-Type: text/plain; charset="UTF-8" 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 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 > > --00000000000021ac54059d0a26b8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
How would you handle source blocks that generate=C2=A0many= figures? In iPython, for example this happens pretty easily. I guess you a= re thinking about blocks with a :file output or something though?

<= /div>
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 f= ragments, 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?=C2=A0
=

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.=C2=A0

Maybe for some src blocks l= ike graphiz, or gnuplot where they more or less only produce one graphic th= is idea could be a good one.=C2=A0

John

----------------------------= -------
Professor John Kitchin=C2=A0
Doherty Hall A207F
Department= of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15= 213
412-268-7803


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

--00000000000021ac54059d0a26b8--