From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uCAWG2fdfmMp7AAAbAwnHQ (envelope-from ) for ; Thu, 24 Nov 2022 03:56:39 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id INMzGmfdfmNKDQEAG6o9tA (envelope-from ) for ; Thu, 24 Nov 2022 03:56:39 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 24D201B745 for ; Thu, 24 Nov 2022 03:56:39 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oy2Oz-0007U3-Pn; Wed, 23 Nov 2022 21:55:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oy2Or-0007Ts-OE for emacs-orgmode@gnu.org; Wed, 23 Nov 2022 21:55:41 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oy2Op-0004y3-G3 for emacs-orgmode@gnu.org; Wed, 23 Nov 2022 21:55:41 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 5DE9E240101 for ; Thu, 24 Nov 2022 03:55:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1669258536; bh=kmuPbM2TO4R+RlWVwUz3V3ojuRuDpQmDF0+og0xAS3s=; h=From:To:Cc:Subject:Date:From; b=rKF9bL0qfSq0orkf8if40DqNAQ64k9fVyhRnRT9kYw5NP+zHwN9MsaD4Mv3CJlIvu jBcMLBjI0aPsDHLjYpGWaKL7rw10a2xiwoRx5l5TCUFsQm1U+N38tjPzMZ3TTvNKU2 x7WAcy23eHtQlmCRok9tCSxuMKVsWB83h3gPdDwHFr3UvJ+/kNk1yfPkclN7R33Ji7 AqUnMzokPnV9VSXUg7OBrGXZG49oyZeNgG3tobsT5ZAj/jQai2bqTrMZ6E5uPuvYor aaXVpxefrTS7/xioXFVUvMzo9WmQ/JEYf9SuQbp+9XOkVX65scDdSAvjC1ISUalaxb oMW/x32rJsx7A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NHjKg1P32z6tnj; Thu, 24 Nov 2022 03:55:34 +0100 (CET) From: Ihor Radchenko To: William Denton Cc: emacs-orgmode@gnu.org Subject: Re: Images generated by R code blocks do not display In-Reply-To: References: <87zgchaybb.fsf@localhost> Date: Thu, 24 Nov 2022 02:56:05 +0000 Message-ID: <87sfi9awmy.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1669258599; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ZazK6BRUXZ1O7fV5XHPTFK0uwJKGTdpS+daIh0uUAH8=; b=DQgvtUCikwBwgeBTA/NceK/p/4PCKFbTosSF0lZ9HqktGVhPu032vlL1wS/YQc23a8qDgt OIpP3nGjbeyBaI7yd9+7z4zhBdH1rI2Wz8ILgyx0HXtJr/0ejXZSkuvfGO0bcaEbK4zlil mi3bafPhUy/cmpno1rLBMRO3ZAwiRbzq7VMlgWBucN9IYqTMy7DJUJG3TYvWEEsNXBAB8y Neasf89f4T9L3KYkxrX1pRTQEAbpOvOI6FfjtI0OE0bcrMm/PUR2V/n0cV6nsP9OyBrP1A 1x+KQGwpMFgzhgxCU0R8c+EQ615aqfX6Nc/8Rl6fQeUJj13HBngLGmgWP0WJag== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669258599; a=rsa-sha256; cv=none; b=STYzWf10yJ5wjiLZD4n+6ozCc9scZXbd958aNvMEHUHxG009UnVvFfMmewgqk0xvjqi+X+ O+XG0RtpewizWBZqMA3aDxppUjfkGuaChHT9hjr+E4oAi9M9YCvV0Lh4ltHh3rvR7YBgJN Hg71ZbwuyqHFgRZhDpMFZc56wuNAPnDf+vGFvYgz/yE4Lb3YuZbdMiVMWklpWu1D45PWLv x9K70rao0nV9+WQOO9weOeap1tMadf21hotch7VpMBZA2UREXKu8nqRC0+ba5puUhyS+1B ZUqXSWlS8dQ6vuFrDBvenklf7G2KzOkyMqgulaHVWVzNFi0xzbSNOfAhfa4EYQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=rKF9bL0q; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.59 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=rKF9bL0q; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 24D201B745 X-Spam-Score: -3.59 X-Migadu-Scanner: scn1.migadu.com X-TUID: 3QcZQAk4pmST William Denton writes: > #+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 minim= al=20 > dependencies, so I hope this boils the problem down in a helpful way. Th= e image=20 > should appear immediately in the buffer, shouldn't it? No, it should not. Though it is often requested. I personally just do it via hook: (add-hook! 'org-babel-after-execute-hook (unless (eq this-command 'org-babel-tangle) (org-display-inline-images nil nil (save-excursion (org-back-to-heading-or-poin= t-min t)) (save-excursion (or (outline-next-heading) (= point-max)))))) Maybe one day someone=E2=84=A2 can submit a patch ;) --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at