|
From: | William Denton |
Subject: | Re: Images generated by R code blocks do not display |
Date: | Wed, 23 Nov 2022 21:46:39 -0500 (EST) |
User-agent: | Alpine 2.22 (DEB 394 2020-01-19) |
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
[Prev in Thread] | Current Thread | [Next in Thread] |