my ultimate goal is to be able to “paint” parts of my notebooks in colors - mainly to indicate a level, like basic/intermediate/expert
I found a couple extensions in
jupyter-contrib-nbextensions that kind of touch on that, but not quite to my needs; it’s really the whole (range of) cells that I want to outline, not only parts of their contents
So I figured I’d write my own extension; I get it how to do it mostly, except for the crucial part which is to actually render cells in color
I have looked in the code and so far am out of luck;
at first I reasoned that the cell toolbar thing was behaving a bit like what I need to do, but it seems like this is part of the core and not an extension, unless I’m mistaken
so, is there an elegant way to do that ?
if not as a rough proposal I would suggest to add a very general mechanism at the cell level, that would for exemple allow to set a metadata like this on a cell
“extra_classes”: “basic flashy”
so the generic cell code would just need to inject those classes in the cell <div> elt
with that in place, it’d become a trivial matter of tweaking
so my questions:
- is there something in the current code already that would let me achieve that without messing with each and every cell content, just metadata of some kind
- if not, has there been discussions about similar ideas in the past, and/or is there a chance to get something to the effect of the above ideas be adopted mainstream someday ?
PS. my current focus is the classic notebook