The other options are prettier and the hook is more flexible; I had only
cared about
tangling though so I set this:
(defadvice org-babel-tangle (before org-babel-tangle-before activate)
(message (concat "org-babel-tangle BEFORE: <"
(format-time-string "%Y-%m-%dT%T%z")
> However, there is a problem:
>
> --8<---cut here---start->8---
> #+name: notify
> #+BEGIN_SRC emacs-lisp :results none
> (shell-command "popup.py DONE")
> #+END_SRC
>
> #+name: long-running
> #+BEGIN_SRC shell :results output :post notify
> sleep 5
> echo DONE
Eric Schulte writes:
> Nick Dokos writes:
>
>> (popup.py is my homemade notifier)
>
> Try adding `(lambda () (shell-command-to-string "popup.py babel done"))'
> to your `org-babel-after-execute-hook'.
>
>>
>> I get the popup immediately and the results after 10 seconds. The
>> org-babel-after-
Nick Dokos writes:
> Ken Mankoff writes:
>
>> Hi Eric,
>>
>> On 2014-03-17 at 17:05, Eric Schulte wrote:
>>> Ken Mankoff writes:
>>>
Until asynchronous babel exists, it would be nice to at least be
notified when long-running tasks complete. Does anyone have advice
how to set up a
Ken Mankoff writes:
> Hi Eric,
>
> On 2014-03-17 at 17:05, Eric Schulte wrote:
>> Ken Mankoff writes:
>>
>>> Until asynchronous babel exists, it would be nice to at least be
>>> notified when long-running tasks complete. Does anyone have advice
>>> how to set up a hook on babel completion so tha
Hi Eric,
On 2014-03-17 at 17:05, Eric Schulte wrote:
> Ken Mankoff writes:
>
>> Until asynchronous babel exists, it would be nice to at least be
>> notified when long-running tasks complete. Does anyone have advice
>> how to set up a hook on babel completion so that growl or some
>> other system
Hi Ken,
Ken Mankoff writes:
> I see from old emails to this list that asynchronous babel does not
> exist and is non-trivial to implement.
Yes, at least my initial attempts to implement this did not succeed (see
line 100 of ob-comint.el), and I haven't had the time to revisit the
issue. In act
I see from old emails to this list that asynchronous babel does not
exist and is non-trivial to implement. Until asynchronous babel
exists, it would be nice to at least be notified when long-running
tasks complete. Does anyone have advice how to set up a hook on babel
completion so that growl or s