7
$\begingroup$

I want to make notebook read-only (protect from modification) for all operating systems (when copied from one OS to another OS read-only should remain). Is there any way to do that?

$\endgroup$
  • $\begingroup$ One possibility would be to save it as a .cdf format. $\endgroup$ – bill s Sep 15 '18 at 20:32
  • $\begingroup$ Are you wanting to protect against accidental modification or deliberate modification? Are you worried about someone copying the whole notebook, posting it into an empty notebook, changing and saving it? $\endgroup$ – mikado Sep 15 '18 at 20:52
  • $\begingroup$ @mikado I am making my notes for Mathematica in Mathematica notebooks. From time to time I am looking in my notes and I want my notes to be protected against accidental modification when I will look in them. $\endgroup$ – vasili111 Sep 15 '18 at 21:22
6
$\begingroup$

You can set the Saveable property to False.

Use Format -> Option Inspector, set the Scope to Selected Notebook, search for Saveable and set it to False. Then save the notebook using Save As... (since Save is now disallowed).

There is also an Editable property. A notebook that is not Saveable may still be Editable, but the changes cannot be saved. You can prevent all changes with the Editable option, but personally I find this inconvenient at the notebook level and only use it at the cell level. For an example of how these options are typically used, look at the documentation page notebooks. These are not Saveable. The notebooks themselves are Editable, as input cells can be changed and new input cells can be added. But certain cells, such as headings and descriptions are not Editable.

Screenshot:

$\endgroup$

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.