jupyterlab_celltagsclasses
An extension to expose cell tags as CSS classes
Requirements
JupyterLab >= 4.0.0
Install
To install the extension, execute:
pip install jupyterlab_celltagsclasses
Uninstall
To remove the extension, execute:
pip uninstall jupyterlab_celltagsclasses
What it does
CSS classes
each cell has its widget (the DOM element) classes kept in sync in terms of the cell's tags;
for example, adding tag foobar will result in the current cell having class cell-tag-foobar added
specifically the DOM elements that are decorated have the .jpCell class set by jlab, like so, where we have set tag celltagsclasses-test1
metadata management helper functions
it also exports utilities to manage a cell's metadata, specifically for
getting, setting or unsetting a key/value pair
adding, removing items in a list inside the metadata (e.g. tags)
cleaning the metadata for empty/useless items
to that effect, see the md_get and similar functions in metadata.ts (that can be imported right f
|