* Connecting to an Already Running Scheme REPL with org-babel
@ 2024-01-28 22:17 Hunter Jozwiak
2024-01-28 22:45 ` Ihor Radchenko
0 siblings, 1 reply; 2+ messages in thread
From: Hunter Jozwiak @ 2024-01-28 22:17 UTC (permalink / raw)
To: emacs-orgmode, hhelp-guix
[-- Attachment #1.1.1: Type: text/plain, Size: 2 bytes --]
[-- Attachment #1.1.2.1: Type: text/plain, Size: 2 bytes --]
[-- Attachment #1.1.2.2.1: Type: text/plain, Size: 317 bytes --]
Hello,
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 src_shell[:exports code]{guix repl --listen=tcp:37146}
If so, what are the header arguments I need to put into place?
Thanks,
Hunter
[-- Attachment #1.1.2.2.2: Type: text/html, Size: 370 bytes --]
[-- Attachment #1.1.2.3: Type: text/html, Size: 979 bytes --]
[-- Attachment #1.1.3: Type: text/html, Size: 2446 bytes --]
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 519 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Connecting to an Already Running Scheme REPL with org-babel
2024-01-28 22:17 Connecting to an Already Running Scheme REPL with org-babel Hunter Jozwiak
@ 2024-01-28 22:45 ` Ihor Radchenko
0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2024-01-28 22:45 UTC (permalink / raw)
To: Hunter Jozwiak; +Cc: emacs-orgmode, hhelp-guix
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>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-01-28 22:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-28 22:17 Connecting to an Already Running Scheme REPL with org-babel Hunter Jozwiak
2024-01-28 22:45 ` Ihor Radchenko
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).