Skip to main content

Style classic notebook cells according to simple bootstrap style cell tags.

Project description

nb_extension_tagstyler

Style Jupyter notebook cells by tag.

Binder

Content in Jupyter notebook markdown cells can be styled by adding a range of alert class attributes to divs contained within the cell.

Wouldn't it be easier if we could just tag the cell?

Currently, only alert-success (green), alert-warning (yellow), alert-danger (pink) and alert-info (blue) tags are supported. You also need to manually reload the notebook in the browser to render the styling. (TO DO: try to mod the tag entry thing so it reflows the cell styling if a cell tag is added?)

The extension also increases the notebook load time as it iterates through every cell looking for tags.

Install via:

pip install git+https://github.com/innovationOUtside/nb_extension_tagstyler.git

pip install nb_extension_tagstyler

The extension should be automatically installed and enabled.

If you need to do things manually:

jupyter nbextension uninstall tagstyler
jupyter nbextension install tagstyler --user
jupyter nbextension enable tagstyler/index

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nb_extension_tagstyler-0.0.2.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

nb_extension_tagstyler-0.0.2-py3-none-any.whl (6.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page