[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] can babel results show time of evaluation?
From: |
Eric Schulte |
Subject: |
Re: [O] can babel results show time of evaluation? |
Date: |
Wed, 30 Jan 2013 10:09:35 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Hi Thomas,
I've just pushed this functionality up to the main branch. To make use
of it add the following to your Emacs config.
(setq org-babel-hash-show-time t)
It works for me in some simple tests, and I can confirm that with this
variable set to nil, I get no new failures in the Org-mode test suite,
so it shouldn't introduce any problems.
Thanks for suggesting this functionality,
Thomas Alexander Gerds <address@hidden> writes:
> Hi Bastien,
>
> thanks for you reply, in particular for showing how to avoid
> org-insert-time-stamp to convert the current-time into a string.
>
> I should have said more clearly what I had in mind with this. I was
> thinking of a reproducible report or manuscript with R source blocks
> that produce some results. Here org babel allows one to enable caching
> for some or all source-blocks. My proposal has two advantages:
>
> 1) when visiting the cached results of a particular block after some
> time, e.g. one year later, it would be visible *when* the block was
> evaluated. This can be useful, e.g., when there are several versions of
> the same dataset which are used to produce the cached results.
>
> 2) sometimes it may be unclear which blocks are evaluated when running
> org-babel-execute-buffer or org-export-as-x, in particular for org-babel
> novices. Thus, showing the evaluation time in the results header will
> help to learn how caching works.
>
> Cheers
> Thomas
>
>
>
>
>
>
> Bastien <address@hidden> writes:
>
>> Hi Thomas,
>>
>> Thomas Alexander Gerds <address@hidden> writes:
>>
>>> (when hash (concat "[["hash"][" (with-temp-buffer
>>> (org-insert-time-stamp (current-time) 'hm)) "]]"))
>>> but, not sure if that is a good idea and what other changes this
>>> would require.
>>
>> I'm not sure too (both whether this is a good idea and whether this
>> would trigger other changes)... but I'd say this is a very specific
>> need, and it can be fulfilled by asking the code to insert a timestamp
>> into the exported results, right?
>>
>> See for e.g.:
>> #+BEGIN_SRC emacs-lisp :results raw
>> (message ";; %s" (format-time-string (cdr org-time-stamp-custom-formats)))
>> #+END_SRC
>> HTH,
> --
>
--
Eric Schulte
http://cs.unm.edu/~eschulte
- [O] can babel results show time of evaluation?, Thomas Alexander Gerds, 2013/01/28
- Re: [O] can babel results show time of evaluation?, Bastien, 2013/01/30
- Re: [O] can babel results show time of evaluation?, Thomas Alexander Gerds, 2013/01/30
- Re: [O] can babel results show time of evaluation?,
Eric Schulte <=
- Re: [O] can babel results show time of evaluation?, Bastien, 2013/01/30
- Re: [O] can babel results show time of evaluation?, Bastien, 2013/01/30
- Re: [O] can babel results show time of evaluation?, Thomas Alexander Gerds, 2013/01/30
- Re: [O] can babel results show time of evaluation?, Eric Schulte, 2013/01/30
- Re: [O] can babel results show time of evaluation?, Achim Gratz, 2013/01/30
- Re: [O] can babel results show time of evaluation?, Bastien, 2013/01/31
- Re: [O] can babel results show time of evaluation?, Bastien, 2013/01/31
- Re: [O] can babel results show time of evaluation?, Nicolas Goaziou, 2013/01/30
- Re: [O] can babel results show time of evaluation?, Eric Schulte, 2013/01/30
- Re: [O] can babel results show time of evaluation?, Nicolas Goaziou, 2013/01/30