5
$\begingroup$

Can I customize the In[] and Out[] headers? I'd like to add $UserName, $MachineName and DateString[], evaluated at cell creation time, into those headers, so it's easy to know by whom and when any particular cell was generated by a glance. This is similar to why/how people customize UNIX terminal prompt.

$\endgroup$
2
  • 3
    $\begingroup$ a bit old but ... $\endgroup$
    – cormullion
    Commented May 7, 2013 at 20:47
  • $\begingroup$ See CellLabel $\endgroup$
    – rm -rf
    Commented May 7, 2013 at 20:47

1 Answer 1

5
$\begingroup$

Maybe something involving CellEpilog:

SetOptions[
 EvaluationNotebook[],
 CellLabelAutoDelete -> False, 
 CellEpilog :> SetOptions[EvaluationCell[], 
                          CellLabel -> StringJoin["Kuba was here ", DateString[]]]]

enter image description here

You can edit Stylesheet if you want to. I'm not sure if out could be modyfied this way too, but at the end of the day it is InputCell what is evaluated, isn't it? :)

$\endgroup$
2
  • $\begingroup$ How would you suppress all output cells this way? $\endgroup$ Commented Jun 18, 2015 at 14:53
  • $\begingroup$ @RolfMertig not sure what do you mean. $\endgroup$
    – Kuba
    Commented Jun 20, 2015 at 8:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.