2
$\begingroup$

I recently wrote a mathematica code that I would like to distribute to some friends. However, I don't want to give away the code. Is there a way that I can hide the code beneath an interface kind of like a GUI, in mathematica. I would simply just like a button that says run and then gives the results on the screen. I looked around and couldn't figure out how to do this. Thanks!

$\endgroup$
  • $\begingroup$ Welcome to Mathematica.SE! I suggest that: 1) You take the introductory Tour now! 2) When you see good questions and answers, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. Also, please remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign! 3) As you receive help, try to give it too, by answering questions in your area of expertise. $\endgroup$ – bbgodfrey Mar 12 '15 at 20:43
  • $\begingroup$ Your CDF code will allow anyone to read the code by inspecting the cell that contains it. $\endgroup$ – David G. Stork Mar 12 '15 at 20:47
  • 2
    $\begingroup$ Related, possibly duplicate: (1571), (58471) $\endgroup$ – Mr.Wizard Mar 12 '15 at 20:54
  • 1
    $\begingroup$ Do your friends have Mathematica? $\endgroup$ – Kuba Mar 12 '15 at 22:16
  • 2
    $\begingroup$ @bbgodfrey I so wish Wolfram would empower users to hide code through CDF. It would greatly expand the usage of Mathematica, I believe. WRI Support tells me the only way to do this is with the Corporate version of Mathematica which is far too expensive for mere users. (We can only hope that v. 11 will permit it.) $\endgroup$ – David G. Stork Mar 12 '15 at 22:19