On Tue, Oct 19, 2010 at 2:41 PM, Nikos Apostolakis <[email protected]>wrote:
> William Stein <[email protected]> writes: > > > On Mon, Oct 18, 2010 at 2:57 AM, Dr. David Kirkby < > [email protected]> wrote: > > > > On 10/18/10 07:31 AM, Nikos Apostolakis wrote: > > > > Dear group, > > > > we are creating some worksheets to be used in teaching > precalculus, and > > we wonder if it's possible to have parts of a worksheet "locked", > so > > that the're not easily (read accidentally) editable. The fear is > that > > students may accidentally, double click on the text and > inadvertently > > delete or corrupt the text while they work through the worksheet. > Also > > is it possible to have some cells "locked?" that is the code > should not > > be easily editable, but stil able to be evaluated? > > > > I'm not aware of one, but there might be. > > > > Yes, you can do this as follows. > > > > (1) Enter the following in an input cell: > > > > %hideall > > html(r""" > > This is a test. > > > > $$\alpha + \beta$$ > > > > """) > > > > (2) Complete refresh the page. > > > > You should see just the output text, no input box, and the output text > cannot be edited > > via double click. To edit it, one must click the Edit button in the > upper right. > > > > Thanks this does what I need in terms of "locked" text. It seems that > there is no way to lock the cells though, right? I think such a feature > would be useful. > Yes you can. You can just define code and %hideall it too. %hideall def foo(n,m): return n+m Then the students won't even see the code. > > Thanks again, > Nikos > > -- > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<sage-support%[email protected]> > For more options, visit this group at > http://groups.google.com/group/sage-support > URL: http://www.sagemath.org > -- William Stein Professor of Mathematics University of Washington http://wstein.org -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
