Re: How to hide mathematica code?

*To*: mathgroup at smc.vnet.net*Subject*: [mg64471] Re: [mg64431] How to hide mathematica code?*From*: "David Park" <djmp at earthlink.net>*Date*: Sat, 18 Feb 2006 02:49:56 -0500 (EST)*Sender*: owner-wri-mathgroup at wolfram.com

Alexander, The answer is yes! 1) You could put the code in a package. Then you would see only the statement that calls the code. 2) You could put the code in a separate Section of a notebook, say a Routines Section. Then the reader would see the code only if they looked in the Routines Section. (And in general it is useful to learn how to use the Section-Subsection structure of notebooks.) 3) You could close the cell that contains the code. Use menu, Cell Properties, or select the cell bracket and use Alt CRC. This closes the cell and all the reader sees is a thin space and a thin bracket on the right. The cell can still be evaluated and a reader may have to be reminded to actually do the evaluation. This is especially useful for diagrams and graphics where the graphics code might be quite long and detailed. All you want the reader to see is the diagram. David Park djmp at earthlink.net http://home.earthlink.net/~djmp/ From: Alexander [mailto:beginning.physst at mail.ru] To: mathgroup at smc.vnet.net Dear Mathgroup! Is there any possibility to define a function and hide it's implementation? The answer seems to be "no". Alexander.