Imagine I have a notebook divided into multiple groups of code cells which are set as initialization groups. I then have a single cell which evaluates a function program[]
that yields an interactive tool (for example via Manipulate
) which internal functions are defined in the initialization groups. Something like
If these groups are collapsed, is it possible to lock them so that when I share the notebook the code in these groups remains hidden and private and the only accessible cell is the one to run the program?
.wl
)? Also, what do you mean by "hidden and private"? If the user needs to be able to execute it, they need to have read access to the code in some way. $\endgroup$program
in some cell within an initialization group, so that when I run the cell withprogram[]
, it first evaluates the group cells, definingprogram
, and then shows me only the output of this last cell. All I'm asking is whether it is possible to lock the group and let initialization cells do the automatic work without needing to see any of the code in it. $\endgroup$$Pre
variables, orCellProlog
or something to lock the use of the hide/expand button. I don't know how you'd implement that though. Obviously you still need a way to access the stuff in the cell yourself. $\endgroup$