Looking at the changelog for version 0.35.0 
<https://jupyterlab.readthedocs.io/en/stable/getting_started/changelog.html> 
of JupyterLab, there is the following item: 

   - A notebook cell can now be readonly, reflecting its enabled metadata. (
   #5401 <https://github.com/jupyterlab/jupyterlab/pull/5401>, #1312 
   <https://github.com/jupyterlab/jupyterlab/issues/1312>)

However, I'm having trouble finding an example of how to actually use this. 
Is there a setting in JupyterLab, or somewhere else I can set a cell to be 
readonly?

I've tried editing the .ipynb file directly, inserting 'enabled' and 
'editable' fields in the metadata field of a cell. 'enabled' is used in the 
changelog, while the linked commits appear to use 'editable': 

> this._readOnly = this.model.metadata.get('editable') === false;
>

My edit of the notebook file looks like this:

> "metadata": {
>     "enabled": false
>    },
>

Any guidance is appreciated.

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/cfa4cf4d-f261-4c03-a193-f3a80ed54b24%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to