jupyterlab/jupyterlab

Add Data Attribute for Cell Tags

Open

#8,298 opened on Apr 28, 2020

View on GitHub
 (2 comments) (0 reactions) (0 assignees)TypeScript (13,454 stars) (2,937 forks)batch import
enhancementgood first issuehelp wantedpkg:cells

Description

Description

We should add a CSS data attribute to a cell that has the papermill "parameters" tag. Right now you'd have to dig into the model to get this information yourself. This information is useful because you might want to style the parameter cell differently. In fact, we may want to do that ourselves at some point.

This can be accomplished at the cell level, by listening for changes to cell metadata and applying or removing a CSS attribute based on the presence of that tag (e.g. setAttribute('data-parameter-cell', 'true')).

Contributor guide

Add Data Attribute for Cell Tags · jupyterlab/jupyterlab#8298 | Good First Issue