geiser-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Geiser-users] Image directory: geiser or org-mode issue?


From: Jose A. Ortega Ruiz
Subject: Re: [Geiser-users] Image directory: geiser or org-mode issue?
Date: Wed, 23 Aug 2017 22:05:20 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

On Wed, Aug 23 2017, Lawrence Bottorff wrote:

> I'm doing this with org-mode and geiser (latest elpa versions of both):
>
> #+name:3d-plot-1
> #+begin_src scheme :session mainsession :exports both :tangle yes :cache yes
> (require math/flonum)
> (require plot)
> (plot3d (contour-intervals3d (λ (b x) (fllogb (fl b) (fl x))) 0 4 0 4)
>           #:x-label "b" #:y-label "x")
> #+end_src
>
> with this result:
>
> #+RESULTS[2d14189b00fd486def9082476fc9eabffb48c337]: 3d-plot-1
> : "#<Image: /var/tmp/geiser-img-15035167321503516732263.png>"
>
> Now, can I control where this image is sent? If so, is this an
> org-mode thing, or is it controlled by geiser?

Geiser generates the image and puts it the directory configured in
geiser-image-cache-dir.

When geiser is in control of the evaluation result (in the REPL or in an
scheme buffer), it inserts the image in the buffer when it sees
something like #<Image ..> as the result.

But here it's org-mode who is handling the display of the result, and it
should be org-mode that parses it and inserts the image instead (or, i
guess, a proper org link to the image).  I am guessing the author of
org-mode's geiser integration module will know better how to do it... i
am afraid i don't know how these org mode modules work...

hth,
jao
-- 
If you could kick in the pants the person responsible for most of your
trouble, you wouldn't sit for a month. — Theodore Roosevelt



reply via email to

[Prev in Thread] Current Thread [Next in Thread]