From: William Denton <wtd@pobox.com>
To: Ihor Radchenko <yantar92@posteo.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: Images generated by R code blocks do not display
Date: Wed, 23 Nov 2022 21:46:39 -0500 (EST) [thread overview]
Message-ID: <alpine.DEB.2.22.394.2211232138350.88998@shell3.miskatonic.org> (raw)
In-Reply-To: <87zgchaybb.fsf@localhost>
Thanks for looking at this. You've fixed the org-toggle-inline-images problem,
but the image generation and display problem is still there for me.
Here's a one-liner shell block that generates an image with Imagemagick, so no
extra Emacs packages necessary:
# -----
#+begin_src sh :results graphics file :file /tmp/colour.png
convert -size 300x300 xc:#002b36 /tmp/colour.png
#+end_src
# -----
But the image doesn't appear right away:
+ C-x C-f (load this file)
+ C-c C-c (to execute)
+ Say yes to "Evalute this sh code block on your system?"
+ #RESULTS block appears (good) but image does not show
+ But: C-c C-x C-v does work to toggle image display (fixed!)
This is the simplest way I could think of to generate an image with minimal
dependencies, so I hope this boils the problem down in a helpful way. The image
should appear immediately in the buffer, shouldn't it?
Thanks,
Bill
On 24 November 2022, Ihor Radchenko wrote:
> William Denton <wtd@pobox.com> writes:
>
>> In Emacs:
>>
>> + C-x C-f (load r.org wherever it is)
>> + C-c C-c (to execute the R code)
>> + Say yes to "Evaluate this R code block on your system?"
>> + #RESULTS block appears (good) but image does not show
>> + C-c C-x C-v (to toggle image display)
>> + image appears
>> + C-c C-c (to execute R code again)
>> + Say yes to "Evaluate this R code block on your system?"
>> + image disappears
>> + C-c C-x C-v says "Inline image display turned off"
>> + C-c C-x C-v says "Inline image display turned off" (and so on)
>>
>> Expected behaviour: Images should appear when this code block is run or rerun,
>> and C-c C-X C-v (org-toggle-inline-images) should toggle the setting, not keep
>> it off.
>
> I am currently not able to test third-party packages in clear
> environment, but I think I know what could have caused the problem.
>
> I think I fixed the issue on main.
> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=d4522dd4d
>
> Can you try the latest main and see if the problem persists?
>
>
--
William Denton
https://www.miskatonic.org/
Librarian, artist and licensed private investigator.
Toronto, Canada
next prev parent reply other threads:[~2022-11-24 2:47 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-22 21:18 Images generated by R code blocks do not display William Denton
2022-11-24 2:19 ` Ihor Radchenko
2022-11-24 2:46 ` William Denton [this message]
2022-11-24 2:56 ` Ihor Radchenko
2022-11-24 3:19 ` William Denton
2022-11-24 3:24 ` Ihor Radchenko
2022-11-24 3:29 ` William Denton
2022-11-24 3:43 ` Ihor Radchenko
2022-11-24 4:11 ` William Denton
2022-11-25 2:03 ` Ihor Radchenko
2022-11-27 13:18 ` Jeremie Juste
2022-11-27 13:21 ` Ihor Radchenko
2022-11-27 14:16 ` Jeremie Juste
2022-11-28 20:44 ` William Denton
2022-11-29 4:16 ` William Denton
2022-12-08 11:19 ` Ihor Radchenko
2022-12-08 15:37 ` William Denton
2022-12-10 10:04 ` Ihor Radchenko
2022-12-12 3:10 ` William Denton
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=alpine.DEB.2.22.394.2211232138350.88998@shell3.miskatonic.org \
--to=wtd@pobox.com \
--cc=emacs-orgmode@gnu.org \
--cc=yantar92@posteo.net \
/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).