reddit / emacs

Continuously update an image in a window.

bloodmummy · 2022-02-24 11:51
Hi, I'm currently pursuing a project which requires working with plots. I've made it so each time I update an array a heatmap is created and saved (Julia Makie) in a 'curr.png' file. One my of emacs windows is showing that file, however, if I update the image again the image on the buffer will only update if I select the buffer. How to make it update itself?
Danrobi1 · 2022-02-24 11:59
Did you tried `global-auto-revert-non-file-buffers t`? It might work.
bloodmummy · 2022-02-24 12:20
Didn't help.
Danrobi1 · 2022-02-24 12:25
Ok. Thanks for sharing
EcstaticBill2638 · 2022-02-24 12:41
Do you have `auto-revert-mode` turned on in the image buffer?
bloodmummy · 2022-02-24 13:00
That worked! Thanks.