Skip to main content

Hide/show notebook inputs with a Colab-like play button parameter widgets in JupyterLab.

Project description

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

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

jl_hidecode-0.0.1.tar.gz (2.3 MB view details)

Uploaded Source

Built Distribution

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

jl_hidecode-0.0.1-py3-none-any.whl (34.4 kB view details)

Uploaded Python 3

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

Hashes for jl_hidecode-0.0.1.tar.gz
Algorithm Hash digest
SHA256 afd1dd96239250ef34ef43196c2757e5b54443e4e915ac4fdfe788c72d00d272
MD5 4499cd87f063af8472fdb5aaa37b137c
BLAKE2b-256 b53e9b062b8ee886e44d3ea82aad30e4af8c3aecf8ea6a7d3cdd0dab21907051

See more details on using hashes here.

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

Hashes for jl_hidecode-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a1035376545292497b0751496032a9d65adf40202f96d1298c752d3869ccb20b
MD5 3c4033bde4df2d0c252c47e803c98ba7
BLAKE2b-256 daba0af2bd3a091eb7e999ad5f5971f178a7951e7a2e183b429b95e308389d81

See more details on using hashes here.

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