Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read Only #7540

Closed
YogiOnBioinformatics opened this issue Nov 19, 2019 · 2 comments
Closed

Read Only #7540

YogiOnBioinformatics opened this issue Nov 19, 2019 · 2 comments
Labels
status:resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion.

Comments

@YogiOnBioinformatics
Copy link

How can we edit an existing .ipynb in Jupyter Lab to be read-only?
More specifically, how can we make specific cells within an existing .ipynb become read-only?

Basically, other users would be able to edit cells that I allow them to (i.e. a cell that specifies an input data file) but all code in other analysis cells can be run but not edited.

If I can't edit an existing .ipynb file to do this, I don't mind saving a notebook with a different name via "Save as" if that makes things easier.

@Alexboiboi
Copy link

Alexboiboi commented Nov 20, 2019

Hi @YogiOnBioinformatics

You just need to add

{
    "editable": false
}

in your cell Metadata.

If you are using Jupyterlab, you can install the Celltags extension for ease of metadata editing

Alex-

@YogiOnBioinformatics
Copy link
Author

Hello @Alexboiboi thank you very much!

This was so helpful!

@lock lock bot added the status:resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion. label Dec 20, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Dec 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status:resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion.
Projects
None yet
Development

No branches or pull requests

2 participants