Hey you #jupyterlab and #jupyternotebook experts out there, is there Cell Metadata property to make it so a markdown cell can't be switched to code/edit mode, but will stay rendered? I've found settings to lock it from being editable so far 👍 but want to keep it locked rendered
@AstrobioMike not exactly, but using `showEditorForReadOnlyMarkdown` setting you can prevent unrendering non editable cells application-wide in JupyterLab. Last week someone suggested adding per notebook setting on SO ( https://stackoverflow.com/questions/75227302/preventing-markdown-cells-from-un-rendering-jupyter-showeditorforreadonlymark ) but there is no issue in JupyterLab GitHub yet. Would you mind opening an issue?
Preventing markdown cells from un-rendering (Jupyter): showEditorForReadOnlyMarkdow

following this post and the issues tab regarding this problem I have found that to make a cell that is set to "editable":false not be able to be un-rendered I need to set

Stack Overflow

Thanks again, @krassowski :)

I posted an issue (https://github.com/jupyterlab/jupyterlab/issues/13929).

I was wondering if you knew if/how I can programmatically set the option we are currently changing as noted in the post you pointed me to (https://stackoverflow.com/questions/75227302/preventing-markdown-cells-from-un-rendering-jupyter-showeditorforreadonlymark). Doing it jupyterlab-wide will work for my teaching stuff, but only if i figure out how to set it automatically. Can i just stick/change that setting in an appropriate file somewhere?

Feature Request to be able to set "showEditorForReadOnlyMarkdown" option in cell or notebook metadata · Issue #13929 · jupyterlab/jupyterlab

Problem I'm using notebooks for educational purposes, and would like to be able to configure a notebook (or individual cells) such that the uneditable markdown cells cannot become un-rendered –...

GitHub
@AstrobioMike if you are hosting an instance with JupyterHub/Binder overrides.json file should work (https://jupyterlab.readthedocs.io/en/stable/user/directories.html#overrides-json).
Advanced Usage — JupyterLab 3.6.1 documentation

@krassowski thanks for the direction 👍 I'm doing individual jupyterlabs installed through conda on separate cloud instances. But i think the location noted there will work still, i'm trying things at: ${CONDA_PREFIX}/share/jupyter/lab/settings/overrides.json

Adding just this:

```
{
"showEditorForReadOnlyMarkdown" : false
}
```

Is getting through, but coming back with:

```
Failed loading overrides: 'bool' object has no attribute 'items'
```

I'm guessing i need to be more specific...

More like

```
{
"@jupyterlab/notebook-extension:tracker": {"showEditorForReadOnlyMarkdown" : false}
}
```

@krassowski my hero! ha, seriously thanks a bunch! This not-being-able-to-unrender-specific-markdown-cells is a small thing, but every little bit can help with new folks.

I appreciate you getting me to a way to do this with how things currently are and saving me so much time looking for things myself 🙏