Locking Markdown cells

159 views
Skip to first unread message

Tony Hirst

unread,
Feb 2, 2017, 6:19:13 AM2/2/17
to Project Jupyter
Is there an easy way of locking a markdown cell so that a user can't edit it, eg for the sharing of teaching materials?

--tony

Thomas Kluyver

unread,
Feb 2, 2017, 6:50:14 AM2/2/17
to Project Jupyter
From notebook 5.0 (coming soon) you can set 'editable: false' in cell metadata - I think this should work for markdown cells as well as code cells.

This is only intended to protect against users accidentally editing something: someone determined to change it can simply remove that metadata and then do as they like.

On 2 February 2017 at 11:19, Tony Hirst <tony....@gmail.com> wrote:
Is there an easy way of locking a markdown cell so that a user can't edit it, eg for the sharing of teaching materials?

--tony

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/7bdca93a-6d43-4e5d-a4fc-25c429cf59e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tony Hirst

unread,
Feb 3, 2017, 5:42:48 AM2/3/17
to Project Jupyter


On Thursday, 2 February 2017 11:50:14 UTC, takowl wrote:
From notebook 5.0 (coming soon) you can set 'editable: false' in cell metadata - I think this should work for markdown cells as well as code cells.

Ah - ok - good to know; thanks.
 
This is only intended to protect against users accidentally editing something: someone determined to change it can simply remove that metadata and then do as they like.

That would b fine for my use case... it's casual changes I want to defend against as much as anything.

thanks

--tony
 
On 2 February 2017 at 11:19, Tony Hirst <tony....@gmail.com> wrote:
Is there an easy way of locking a markdown cell so that a user can't edit it, eg for the sharing of teaching materials?

--tony

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages