Skip to main content

JupyterLab extension for easily locking cells, making them read-only and undeletable.

Project description

build PyPI version PyPI downloads

🔒 jupyterlab-cell-lock

GIF showing JupyterLab UI "Lock all cells" and "Unlock all cells" buttons in the toolbar and toggling lock on individual cells

A JupyterLab extension for easily locking cells, making them read-only and undeletable.

⚠️ Limitations

This is not a security feature. It is primarily for preventing accidental modifications.

The extension locks cells by modifying metadata in the notebook file. Any user with knowledge of JupyterLab or the notebook file format can edit or remove this metadata to bypass the lock.

You should always use source control for your notebooks.

📝 Requirements

📦 Installation

Install with pip:

pip install jupyterlab-cell-lock

Confirm installation:

jupyter labextension list

💡 Use Cases

  • Educators Distributing Assignments and Notes: Provide notebooks with text, problem descriptions, and code, helping prevent students from accidentally editing assignments/lecture notes while still allowing them to add their own notes/answers in new or designated cells.

  • Protecting Content: Lock your notebook to ensure you don't accidentally delete or modify your work while iterating.

  • Creating Templates: Lock down template notebooks used to standardize workflows.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jupyterlab_cell_lock-0.3.4.tar.gz (153.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jupyterlab_cell_lock-0.3.4-py3-none-any.whl (162.4 kB view details)

Uploaded Python 3

File details

Details for the file jupyterlab_cell_lock-0.3.4.tar.gz.

File metadata

  • Download URL: jupyterlab_cell_lock-0.3.4.tar.gz
  • Upload date:
  • Size: 153.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for jupyterlab_cell_lock-0.3.4.tar.gz
Algorithm Hash digest
SHA256 53cf1f4b2de8a651495d4ff54d7412945fc8106e4a2a08cdb1a7dfa016531e3d
MD5 86b8ee05885a464743108de380acf49d
BLAKE2b-256 c059cef8f019a18172607801b764020eaaf1bba5c691b9be7ab78378402d88f6

See more details on using hashes here.

Provenance

The following attestation bundles were made for jupyterlab_cell_lock-0.3.4.tar.gz:

Publisher: publish.yaml on jrdnbradford/jupyterlab-cell-lock

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file jupyterlab_cell_lock-0.3.4-py3-none-any.whl.

File metadata

File hashes

Hashes for jupyterlab_cell_lock-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 fb4d7ce5fee0322399d0daa1edcc100bba7390aef9591c637136b442767867ea
MD5 12e3bf7d02da886ec0b332677431b148
BLAKE2b-256 b8ad4685d198115f3a5af8e21a578861ec486298f12f566abc4dbe463f78ca8b

See more details on using hashes here.

Provenance

The following attestation bundles were made for jupyterlab_cell_lock-0.3.4-py3-none-any.whl:

Publisher: publish.yaml on jrdnbradford/jupyterlab-cell-lock

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page