emacs-orgmode
[Top][All Lists]
Advanced

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

Re: Connecting to an Already Running Scheme REPL with org-babel


From: Ihor Radchenko
Subject: Re: Connecting to an Already Running Scheme REPL with org-babel
Date: Sun, 28 Jan 2024 22:45:12 +0000

Hunter Jozwiak <hunter.t.joz@gmail.com> writes:

> i am curious whether or not it is possible to connect Org babel to a remotely 
> running scheme REPL, more
> specifically the Guile REPL that you get by running something like guix repl 
> --listen=tcp:37146

ob-scheme does not have such feature.
Although, it might not be hard to implement.

Check out `org-babel-scheme-get-repl' function. Now, it calls
 (geiser impl)
You would need
 (geiser-connect impl host port)
to connect to server.

Of course, you'd also need to somehow get HOST and PORT values. For
example, passing them all the way down from the header argument plist
stored in PARAMS argument of `org-babel-execute:scheme' (->
org-babel-scheme-execute-with-geiser -> org-babel-scheme-get-repl)

Patches welcome!

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



reply via email to

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