innovationOUtside / nb_quality_profile

Simple tools for reviewing the quality of Jupyter notebooks.
MIT License
1 stars 0 forks source link

Visualising additional notebook structure #6

Open psychemedia opened 3 years ago

psychemedia commented 3 years ago

As I start to move to using tags for things like the empinken extension, it might be worth extending the visualiser to support the visualisation of richer structure based on cell tags.

psychemedia commented 1 year ago

A good starting point for this would be the empinken tags, particularly if this are also generated using ou2xml stylesheets, so then we can can render visualisations of OU-XML structure.

The iterator for building the mappings seems quite straightforward, simply being a line count and and a colour map: https://github.com/innovationOUtside/nb_quality_profile/blob/1928035c5fca295abf956ff3846d071e00f25e92/nb_quality_profile/nb_visualiser.py#L169

So we simply also have to detect whether a cell tag is in a particular tag set, and if it is, then colour the cell accordingly.