emacs-orgmode
[Top][All Lists]
Advanced

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

[PATCH] Async evaluation in ob-shell


From: Matt
Subject: [PATCH] Async evaluation in ob-shell
Date: Mon, 06 Feb 2023 14:39:00 -0500
User-agent: Zoho Mail

I'm excited to share that I've got async evaluation working (crudely) with 
ob-shell.  A rough implementation is attached.  

It has clear issues, such as the prompt being present in the output:

#+begin_src sh :session tester :async t
echo "By sending delimiters separately..."
sleep 3
slep 1
echo "typos don't cause problems--^"
#+end_src

#+RESULTS:
: org_babel_sh_prompt> By sending delimiters separately...
: org_babel_sh_prompt> org_babel_sh_prompt> sh: slep: command not found
: org_babel_sh_prompt> typos don't cause problems--^
: org_babel_sh_prompt>

It's not clear to me if that's something that a better regexp would handle or 
if it should be cleaned up in the callback function.  I'm still figuring out 
how it's done in ob-python and ob-R.

Any feedback or advice is welcome.


Attachment: ob-shell-async-separate-calls.patch
Description: Binary data


reply via email to

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