Group Abstract Group Abstract

Message Boards Message Boards

How can I prevent other users from seeing my Input Cells?

Posted 23 hours ago

I have sensitive security machine parameters in my calculation input cells. I'd like to hide input cells and permanently lock them so that other users cannot open or see my input cells.

I want that other users can use slide bars and numeric input window in Manipulate [ ] function but I have to hide and lock the details of calculations to protect the security machine parameters.

I know that we can hide Input Cells using the following code, but other users can still open it by double clicking the right cell bracket or editing the notebook.

CreatePalette[
 Column[{Button[
    "Hide code", {NotebookFind[SelectedNotebook[], "Output", All, 
      CellStyle];
     FrontEndExecute[
      FrontEndToken[SelectedNotebook[], 
       "SelectionCloseUnselectedCells"]]}], 
   Button["Show code", 
    NotebookFind[SelectedNotebook[], "Input", All, CellStyle]]}]]

How can I create, hide, lock, and distribute my notebook without revealing the details of calculations?

POSTED BY: Yeonjoon Park
2 Replies
Posted 6 hours ago

How are you distributing your stuff? Like, are you sending the notebook itself?

POSTED BY: Eric Rimbey

I am not expert in security, so I only give my 2 cents about Manipulate. IĀ suppose that you use SaveDefinitions -> True to make it work without reevaluating. But then your definitions get stored in the Manipulate cell and become visible with ShowExpression. So, even deleting all input would not be enough.

POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard