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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file nb_extension_tagstyler-0.0.2.tar.gz.

File metadata

  • Download URL: nb_extension_tagstyler-0.0.2.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for nb_extension_tagstyler-0.0.2.tar.gz
Algorithm Hash digest
SHA256 e0880db8d65c7df3ea150674e9f0b4ba8522c98c78824bd55bc06d693f3db7ad
MD5 c888fa1a918a52846f7434b1b5ab5d2b
BLAKE2b-256 f06799ae7aff14291cb4a38be0cfad891572cc833fa6b0716d05f7305fdeefe1

See more details on using hashes here.

File details

Details for the file nb_extension_tagstyler-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: nb_extension_tagstyler-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for nb_extension_tagstyler-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bdbccd5e6c442127f29a6e4c840a3ab8bc6c286fda9b40c5a0287440f981d96b
MD5 26b4ad86ea2b86ab6c468bff305bce37
BLAKE2b-256 84a91f2fb3689ed51cfe16a60a783b676e0a3a94f7a0881cbffd37ca14f81167

See more details on using hashes here.

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