emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* real-time image rendering
@ 2014-10-03 22:12 Doyley, Marvin M.
  2014-10-03 23:29 ` Grant Rettke
  0 siblings, 1 reply; 6+ messages in thread
From: Doyley, Marvin M. @ 2014-10-03 22:12 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

Dear All,

I am currently using Org mode as a teaching tool for a course that I am teaching this semester. I would like to run some python simulations in class and save the results to a file. I would like to show the results in real time as I change various parameters.  I am using iimage-mode to display images. The only snag is that I have to toggle iimage-mode on and off to see the changes. Is there away to get iimage-mode to render in real time

thanks
M

Sent from my iPad

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

* Re: real-time image rendering
  2014-10-03 22:12 real-time image rendering Doyley, Marvin M.
@ 2014-10-03 23:29 ` Grant Rettke
  2014-10-04  1:13   ` Doyley, Marvin M.
  2014-10-04  3:09   ` Doyley, Marvin M.
  0 siblings, 2 replies; 6+ messages in thread
From: Grant Rettke @ 2014-10-03 23:29 UTC (permalink / raw)
  To: Doyley, Marvin M.; +Cc: emacs-orgmode@gnu.org

Sorry for not discussing further:

https://stackoverflow.com/questions/17621495/emacs-org-display-inline-images

On Fri, Oct 3, 2014 at 5:12 PM, Doyley, Marvin M.
<mdoyley@ur.rochester.edu> wrote:
> Dear All,
>
> I am currently using Org mode as a teaching tool for a course that I am teaching this semester. I would like to run some python simulations in class and save the results to a file. I would like to show the results in real time as I change various parameters.  I am using iimage-mode to display images. The only snag is that I have to toggle iimage-mode on and off to see the changes. Is there away to get iimage-mode to render in real time
>
> thanks
> M
>
> Sent from my iPad



-- 
Grant Rettke
gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson

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

* Re: real-time image rendering
  2014-10-03 23:29 ` Grant Rettke
@ 2014-10-04  1:13   ` Doyley, Marvin M.
  2014-10-04  3:09   ` Doyley, Marvin M.
  1 sibling, 0 replies; 6+ messages in thread
From: Doyley, Marvin M. @ 2014-10-04  1:13 UTC (permalink / raw)
  To: Grant Rettke; +Cc: emacs-orgmode@gnu.org

Thanks
Cheers,
M

Sent from my iPad

> On Oct 3, 2014, at 7:29 PM, Grant Rettke <gcr@wisdomandwonder.com> wrote:
> 
> Sorry for not discussing further:
> 
> https://urldefense.proofpoint.com/v1/url?u=https://stackoverflow.com/questions/17621495/emacs-org-display-inline-images&k=p4Ly7qpEBiYPBVenR9G2iQ%3D%3D%0A&r=Fwb4ac3v7AhcQoTcqa9wemihF49yp0vUvrJ%2BiX5Re4w%3D%0A&m=Z1cxylKq%2BcxQlQYWByza7usVlHiUrctSCJZH%2BrYsd2c%3D%0A&s=be48c9d91e056d8bd6c1d1087998c148178cd7448476c9cc4260be57508f602b
> 
> On Fri, Oct 3, 2014 at 5:12 PM, Doyley, Marvin M.
> <mdoyley@ur.rochester.edu> wrote:
>> Dear All,
>> 
>> I am currently using Org mode as a teaching tool for a course that I am teaching this semester. I would like to run some python simulations in class and save the results to a file. I would like to show the results in real time as I change various parameters.  I am using iimage-mode to display images. The only snag is that I have to toggle iimage-mode on and off to see the changes. Is there away to get iimage-mode to render in real time
>> 
>> thanks
>> M
>> 
>> Sent from my iPad
> 
> 
> 
> -- 
> Grant Rettke
> gcr@wisdomandwonder.com | https://urldefense.proofpoint.com/v1/url?u=http://www.wisdomandwonder.com/&k=p4Ly7qpEBiYPBVenR9G2iQ%3D%3D%0A&r=Fwb4ac3v7AhcQoTcqa9wemihF49yp0vUvrJ%2BiX5Re4w%3D%0A&m=Z1cxylKq%2BcxQlQYWByza7usVlHiUrctSCJZH%2BrYsd2c%3D%0A&s=2ffec8f094fdc2745d8be47418e74b09f151f07ccb55412fafda2a0d19534ac5
> “Wisdom begins in wonder.” --Socrates
> ((λ (x) (x x)) (λ (x) (x x)))
> “Life has become immeasurably better since I have been forced to stop
> taking it seriously.” --Thompson

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

* Re: real-time image rendering
  2014-10-03 23:29 ` Grant Rettke
  2014-10-04  1:13   ` Doyley, Marvin M.
@ 2014-10-04  3:09   ` Doyley, Marvin M.
  2014-10-05 21:16     ` Sebastien Vauban
  1 sibling, 1 reply; 6+ messages in thread
From: Doyley, Marvin M. @ 2014-10-04  3:09 UTC (permalink / raw)
  To: Grant Rettke; +Cc: emacs-orgmode@gnu.org

This works better
 (add-hook 'org-babel-after-execute-hook
	              'org-display-inline-images)

https://www.mail-archive.com/emacs-orgmode@gnu.org/msg88358.html
thanks
m
On Oct 3, 2014, at 7:29 PM, Grant Rettke <gcr@wisdomandwonder.com> wrote:

> Sorry for not discussing further:
> 
> https://urldefense.proofpoint.com/v1/url?u=https://stackoverflow.com/questions/17621495/emacs-org-display-inline-images&k=p4Ly7qpEBiYPBVenR9G2iQ%3D%3D%0A&r=Fwb4ac3v7AhcQoTcqa9wemihF49yp0vUvrJ%2BiX5Re4w%3D%0A&m=Z1cxylKq%2BcxQlQYWByza7usVlHiUrctSCJZH%2BrYsd2c%3D%0A&s=be48c9d91e056d8bd6c1d1087998c148178cd7448476c9cc4260be57508f602b
> 
> On Fri, Oct 3, 2014 at 5:12 PM, Doyley, Marvin M.
> <mdoyley@ur.rochester.edu> wrote:
>> Dear All,
>> 
>> I am currently using Org mode as a teaching tool for a course that I am teaching this semester. I would like to run some python simulations in class and save the results to a file. I would like to show the results in real time as I change various parameters.  I am using iimage-mode to display images. The only snag is that I have to toggle iimage-mode on and off to see the changes. Is there away to get iimage-mode to render in real time
>> 
>> thanks
>> M
>> 
>> Sent from my iPad
> 
> 
> 
> -- 
> Grant Rettke
> gcr@wisdomandwonder.com | https://urldefense.proofpoint.com/v1/url?u=http://www.wisdomandwonder.com/&k=p4Ly7qpEBiYPBVenR9G2iQ%3D%3D%0A&r=Fwb4ac3v7AhcQoTcqa9wemihF49yp0vUvrJ%2BiX5Re4w%3D%0A&m=Z1cxylKq%2BcxQlQYWByza7usVlHiUrctSCJZH%2BrYsd2c%3D%0A&s=2ffec8f094fdc2745d8be47418e74b09f151f07ccb55412fafda2a0d19534ac5
> “Wisdom begins in wonder.” --Socrates
> ((λ (x) (x x)) (λ (x) (x x)))
> “Life has become immeasurably better since I have been forced to stop
> taking it seriously.” --Thompson


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

* Re: real-time image rendering
  2014-10-04  3:09   ` Doyley, Marvin M.
@ 2014-10-05 21:16     ` Sebastien Vauban
  0 siblings, 0 replies; 6+ messages in thread
From: Sebastien Vauban @ 2014-10-05 21:16 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

"Doyley, Marvin M." wrote:
> This works better
>  (add-hook 'org-babel-after-execute-hook
>            'org-display-inline-images)

Why better?  For which reason?

Why not this:

--8<---------------cut here---------------start------------->8---
  (add-hook 'org-babel-after-execute-hook
            (lambda ()
              (org-display-inline-images nil t)))
                                      ; more efficient with refresh == t
--8<---------------cut here---------------end--------------->8---

?

Best regards,
  Seb

-- 
Sebastien Vauban

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

* Re: real-time image rendering
@ 2014-10-06 19:12 Doyley, Marvin M.
  0 siblings, 0 replies; 6+ messages in thread
From: Doyley, Marvin M. @ 2014-10-06 19:12 UTC (permalink / raw)
  To: sva-news@mygooglest.com; +Cc: emacs-orgmode@gnu.org

I agree controlling the refresh rate make your approach better.
Thanks,
M
> Why better?  For which reason?

> Why not this:

> --8<---------------cut here---------------start------------->8---
> (add-hook 'org-babel-after-execute-hook
>         (lambda ()
>             (org-display-inline-images nil t)))
>                                     ; more efficient with refresh == t
--8<---------------cut here---------------end--------------->8---

?

Best regards,
  Seb

-- 
Sebastien Vauban

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

end of thread, other threads:[~2014-10-06 19:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-03 22:12 real-time image rendering Doyley, Marvin M.
2014-10-03 23:29 ` Grant Rettke
2014-10-04  1:13   ` Doyley, Marvin M.
2014-10-04  3:09   ` Doyley, Marvin M.
2014-10-05 21:16     ` Sebastien Vauban
  -- strict thread matches above, loose matches on Subject: below --
2014-10-06 19:12 Doyley, Marvin M.

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