astahlman / ob-async

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

Org babel exports results #80

Open ludwigkr opened 2 years ago

ludwigkr commented 2 years ago

Org-export-dispatch is not exporting the result of ob-async but this intermediate random number.

For example:

#+begin_src sh :results output replace :exports results :async
sleep 2s && echo "Hello World"
#+end_src

exports (as text output):

┌────
│ f26e93dae63d719bede4c9dd9b951858
└────

It should export :wink: :

┌────
│ Hello World
└────
hraban commented 2 years ago

Tip: org babel reevaluates blocks on export, by default. You can disable this with the :eval no-export header on a code block. This works regardless of whether the block is :async.

https://superuser.com/a/1220466/442895