Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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.

share|improve this question
3  
a bit old but ... –  cormullion May 7 '13 at 20:47
    
See CellLabel –  rm -rf May 7 '13 at 20:47
add comment

1 Answer

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? :)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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