emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] Eval src block does not redisplay inline image [9.5.1 (9.5.1-g36086a @ /Users/rob/.emacs.d/elpa/org-9.5.1/)]
@ 2021-12-09 16:52 Robert Nikander
  2021-12-10  7:13 ` Greg Minshall
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Nikander @ 2021-12-09 16:52 UTC (permalink / raw)
  To: emacs-orgmode

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

I’m trying to use Org mode like a Jupyter notebook. I’ve got something working, but for graphic plots, I have to call `org-display-inline-images` after every call to `org-babel-execute-src-block`. I guess there is a work-around, described here:

https://stackoverflow.com/questions/54269390/how-to-always-show-inline-images <https://stackoverflow.com/questions/54269390/how-to-always-show-inline-images>

But it seems like a bug. ?

My example block:

#+begin_src ess-julia :results output graphics file :file FILENAME.png :session *julia* :exports both
  using Plots
  x = 1:0.02:10; y = sin.(10x) 
  plot(x, y, label="test")
#+end_src

After running it inserts this:

#+RESULTS:
[[file:FILENAME.png]]

As described in the stackoverflow Q&A, I can then run `org-redisplay-inline-images` or other commands to show the image.

Rob



Emacs  : GNU Emacs 27.2 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G95))
 of 2021-11-18
Package: Org mode version 9.5.1 (9.5.1-g36086a @ /Users/rob/.emacs.d/elpa/org-9.5.1/)


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [BUG] Eval src block does not redisplay inline image [9.5.1 (9.5.1-g36086a @ /Users/rob/.emacs.d/elpa/org-9.5.1/)]
  2021-12-09 16:52 [BUG] Eval src block does not redisplay inline image [9.5.1 (9.5.1-g36086a @ /Users/rob/.emacs.d/elpa/org-9.5.1/)] Robert Nikander
@ 2021-12-10  7:13 ` Greg Minshall
  0 siblings, 0 replies; 2+ messages in thread
From: Greg Minshall @ 2021-12-10  7:13 UTC (permalink / raw)
  To: Robert Nikander; +Cc: emacs-orgmode

Robert,

i have the following commented out in my .emacs.  i have no memory of
it, why i put it in, why i took it out, or if it might provide you any
clue.  but, with all those caveats...
----
;; in org-mode, display images inline after execution
;; except, after a while, this gets tiresome.  one can C-c C-x C-v
;; (add-hook 'org-babel-after-execute-hook 'org-display-inline-images)
----

cheers, Greg


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-12-10  7:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-09 16:52 [BUG] Eval src block does not redisplay inline image [9.5.1 (9.5.1-g36086a @ /Users/rob/.emacs.d/elpa/org-9.5.1/)] Robert Nikander
2021-12-10  7:13 ` Greg Minshall

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).