astahlman / ob-async

Asynchronous src_block execution for org-babel
343 stars 32 forks source link

Feature: Ability to interact with running process #33

Open oystersauce8 opened 6 years ago

oystersauce8 commented 6 years ago

Today I found myself running a script with this wonderful package.

Inside the script, there 's a line

byebug; # debugger

and when execution hits that line, it's REPL should appear in my emacs. When I hit c (for continue in byebug), the execution should resume.

Am I asking too much of this package?

astahlman commented 6 years ago

I'm open to this in theory, provided it doesn't add too much complexity to the implementation, but I have neither the time nor motivation to take it on right now.

For anyone who does want to look into it: ob-async uses emacs-async under the hood to run the src block in a background process. Unfortunately, I don't see any function in the async API which would allow for interacting with a process before it completes.