Skip to main content

JupyterLab Hide Code

jl-hidecode

A JupyterLab extension to hide/show notebook inputs (permanently, without accidental uncollapse) with a Colab-like play button.

Features

1.- Show/Hide Code

Allows you to hide the code so it cannot be accidentally uncollapsed by clicking into the cell. You can do this by clicking the notebook toolbar button 'Show/Hide Code' or using the keyboard shortcut Ctrl+Shift+H (Windows/Linux) or Cmd+Shift+H (Mac).

Hidden cells stay locked even if you click into them—only the JupyterLab Hide Code shortcut/button changes their visibility, preventing accidental uncollapse while reading.

Video showing how to use the Show/Hide Code button

2.- Colab-like Run Button for Locked Cells

When a cell is hidden/locked, a small "play" button appears next to the cell's collapser. Clicking this button runs the cell in place without expanding it.

This feature is inspired by Google Colab's behavior, allowing users to execute code without revealing it. The regular cell execution methods (Shift+Enter, Run button) will still work as usual without expanding the cell.

Video showing how to use the Run Button for locked cells

Requirements

  • JupyterLab >= 4.0.0

Install

To install the extension, execute:

pip install jl-hidecode

Uninstall

To remove the extension, execute:

pip uninstall jl-hidecode

Metadata

Release files for jl-hidecode 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jl-hidecode 0.0.1
File Size Uploaded Provenance
jl_hidecode-0.0.1.tar.gz 2.3 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for jl-hidecode 0.0.1
File Interpreter ABI Platform
jl_hidecode-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 2.3 MB

Release files / jl_hidecode-0.0.1.tar.gz

Download URL jl_hidecode-0.0.1.tar.gz
Size 2.3 MB
Tags Source
SHA-256 checksum
How to use checksums
afd1dd96239250ef34ef43196c2757e5b54443e4e915ac4fdfe788c72d00d272
BLAKE2b-256 checksum
How to use checksums
b53e9b062b8ee886e44d3ea82aad30e4af8c3aecf8ea6a7d3cdd0dab21907051
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / jl_hidecode-0.0.1-py3-none-any.whl

Download URL jl_hidecode-0.0.1-py3-none-any.whl
Size 34.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a1035376545292497b0751496032a9d65adf40202f96d1298c752d3869ccb20b
BLAKE2b-256 checksum
How to use checksums
daba0af2bd3a091eb7e999ad5f5971f178a7951e7a2e183b429b95e308389d81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Security for jl-hidecode 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page