astahlman / ob-async

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

Option to ignore sessions only #79

Open jackkamm opened 2 years ago

jackkamm commented 2 years ago

Since Org 9.5, some languages (currently Python and R) support the :async flag for sessions, but don't have async evaluation for nonsession blocks.

Currently, ob-async breaks the native async evaluation unless these languages are added to ob-async-no-async-languages-alist. However, doing so prevents using ob-async for nonsession blocks. It would be desirable to be able to use ob-async for nonsession blocks while using the native implementation for session blocks.

This PR adds an option ob-async-ignore-sessions that allows ob-async to ignore session blocks of a language, while still being able to use ob-async for the nonsession blocks.