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
    May 7 '13 at 20:47
  • $\begingroup$ See CellLabel $\endgroup$
    – rm -rf
    May 7 '13 at 20:47
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$ Jun 18 '15 at 14:53
  • $\begingroup$ @RolfMertig not sure what do you mean. $\endgroup$
    – Kuba
    Jun 20 '15 at 8:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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