Hide/show notebook inputs with a Colab-like play button parameter widgets in JupyterLab.
Project description
JupyterLab Hide Code
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.
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.
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jl_hidecode-0.0.1.tar.gz.
File metadata
- Download URL: jl_hidecode-0.0.1.tar.gz
- Upload date:
- Size: 2.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
afd1dd96239250ef34ef43196c2757e5b54443e4e915ac4fdfe788c72d00d272
|
|
| MD5 |
4499cd87f063af8472fdb5aaa37b137c
|
|
| BLAKE2b-256 |
b53e9b062b8ee886e44d3ea82aad30e4af8c3aecf8ea6a7d3cdd0dab21907051
|
File details
Details for the file jl_hidecode-0.0.1-py3-none-any.whl.
File metadata
- Download URL: jl_hidecode-0.0.1-py3-none-any.whl
- Upload date:
- Size: 34.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1035376545292497b0751496032a9d65adf40202f96d1298c752d3869ccb20b
|
|
| MD5 |
3c4033bde4df2d0c252c47e803c98ba7
|
|
| BLAKE2b-256 |
daba0af2bd3a091eb7e999ad5f5971f178a7951e7a2e183b429b95e308389d81
|