-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example of how to read notebook cell metadata and update cell CSS style #182
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
Thanks @psychemedia for posting the issue here. Maybe a good exercise here would be to take that classic notebook extension and port it to JupyterLab? https://github.com/innovationOUtside/nb_extension_tagstyler In addition to this, there could be an additional section in the README of the extensions example repo to link to external projects. In that case there could be a link to the tagstyler lab extension but also to other extensions, for example the ones in the The idea would be to consolidate the range of examples, and point to real-world (published) extensions that would be more accessible than reading the JupyterLab source code. |
Re: porting the classic nb extension, I've had several false starts trying to get started with JupyterLab extensions and still haven't seen a way in that makes me think I could make good progress and get something half way working in a half hour hack! (I'm really really wary of getting lost in things I really really don't understand...;-) Will have a look next time I have a half day clear... |
Is there a minimum viable example anywhere, ideally in Javascript, of how to:
For example, based on the above example,
jb_style_note
orjb_style_warning
tags might trigger styling of correspondingly tagged notebook markdown cells. Or maybe just tags with much simpler associated styling such as setting the cell background and margin with a particular colour.If that's not an appropriate model, is there an example of an extension that:
As an aside, I also wonder if there is a playground anywhere (perhaps in docs on theming? Or in ipylab?) that shows how to style different parts of a notebook cell display?
The text was updated successfully, but these errors were encountered: