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.

I am about to send a Mathematica notebook to someone and I would like to make sure it does not contain any information that could personally identify me. I would also like to produce pdf files from the notebook and would like them to be metadata-free. Do I need to 'scrub' the file from some intrinsic metadata (as you would need to do, carefully, say, for an MS Word file), or do they generically not include any such information?

If they do contain metadata,

  • what can it be?
  • where is it? and
  • how can I scrub it?
share|improve this question
11  
Not directly, but I suppose it could store the file path of custom stylesheets, which might identify you. You can turn off FileOutlineCache in the options inspector, which only leaves the notebook expressions behind (paths will still remain). You might also want to disable/remove the CellChangeTimes so mask when you were active/your time zone, etc. –  rm -rf Sep 8 '13 at 21:44
10  
You can examine the entire notebook in a text editor to make certain it doesn't contain anything you don't want to include, but honestly, it will only have in it what you put in it. –  Jagra Sep 8 '13 at 23:01
5  
I will emphasize what @Jagra says: check in a text editor. I've made pdfs from notebooks, and learned that they contained identifying information I'd have preferred not be there. Indeed, an important case was precisely for a referee report. Taking this one step further: also check in a text editor any file you might send, that was generated from the nb. –  Daniel Lichtblau Sep 9 '13 at 15:50
1  
Unfortunately, no. The reason being I no longer recall the details (this was maybe 2 years ago). It may have been relatively benign, something like just having the name of the original notebook complete with the .nb extension. Not such a bad thing usually, but a strong identifier if one happens to be the only possible referee who uses Mathematica. It is also possible that there was a file path but I don't think it was that serious. –  Daniel Lichtblau Sep 9 '13 at 19:45
1  
@episanty I encourage you to gather information you got from comments and your experience and self answer this question :) –  Kuba Sep 13 '13 at 9:19
show 4 more comments

1 Answer

up vote 13 down vote accepted

On the encouragement of Kuba, I will collect in an answer the multiple comments (with due credit to rm -rf, Jagra, and Daniel Lichtblau) that do, to a large extent, answer the question. For me, the most important points are the following:

  • Mathematica notebooks do not, by themselves, store explicit personally identifying information such as author names, as you might get with e.g. MS Word, and pdfs printed from it.

  • However, there can be certain types of information in the notebook (including but not limited to cell editing times, custom style sheet locations, and the file path or filename of the notebook) that can show up in the notebook or pdfs printed from it, and which can reveal traits (such as timezone / active times, operating system, or the very use of Mathematica itself) which, depending on context, can end up identifying you.

    To remove the cell editing times, go to Cell $\to$ Notebook History and click Clear History. To remove the file outline cache, go to Format $\to$ Options Inspector, choose Show Option Values $\to$ Selected Notebook, go to Notebook Options $\to$ PrivateNotebookOptions, and change "FileOutlineCache" to False. Doing this will make the notebook much easier to read in a file editor, and therefore help in finding any further information you might wish weren't there.

  • Most importantly, notebooks can be opened externally with any text editor; with the exception of Graphics objects they are quite transparent to read. Thus, if this is a concern, you can and should have a good look at the notebook to see if there's anything there that you'd rather not be.

For the examples above, disabling CellChangeTimes will remove cell editing times from the notebook; turning off FileOutlineCache in the options inspector will leave only the notebook expressions behind, though paths to the stylesheets will remain. If you print a pdf from the notebook, it may still be a good idea to run it through a pdf metadata removal tool such as this one if metadata is an issue, just to be sure. The notebooks themselves, though, will have nothing in them that's not visible through a text editor.

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.