Skip to main content

JupyterLab Pygments Theme

This package contains a syntax coloring theme for pygments making use of the JupyterLab CSS variables.

The goal is to enable the use of JupyterLab's themes with pygments-generated HTML.

Screencast

In the following screencast, we demonstrate how Pygments-highlighted code can make use of the JupyterLab theme.

pygments screencast

Installation

jupyterlab_pygments can be installed with the conda package manager

conda install -c conda-forge jupyterlab_pygments

or from pypi

pip install jupyterlab_pygments

Dependencies

  • jupyterlab_pygments requires pygments version 2.4.1.
  • The CSS variables used by the theme correspond to the CodeMirror syntex coloring theme defined in the NPM package @jupyterlab/codemirror. Supported versions for @jupyterlab/codemirror's CSS include 0.19.1, ^1.0, and, ^2.0.

Limitations

Pygments-generated HTML and CSS classes are not granular enough to reproduce all of the details of codemirror (the JavaScript text editor used by JupyterLab).

This includes the ability to differentiate properties from general names.

License

jupyterlab_pygments uses a shared copyright model that enables all contributors to maintain the copyright on their contributions. All code is licensed under the terms of the revised BSD license.

Release files for jupyterlab-pygments 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jupyterlab-pygments 0.3.0
File Size Uploaded
jupyterlab_pygments-0.3.0.tar.gz 512.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jupyterlab-pygments 0.3.0
File Interpreter ABI Platform
jupyterlab_pygments-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 528.8 kB

Release files / jupyterlab_pygments-0.3.0.tar.gz

Download URL jupyterlab_pygments-0.3.0.tar.gz
Size 512.9 kB
Tags Source
SHA-256 checksum
How to use checksums
721aca4d9029252b11cfa9d185e5b5af4d54772bb8072f9b7036f4170054d35d
BLAKE2b-256 checksum
How to use checksums
90519187be60d989df97f5f0aba133fa54e7300f17616e065d1ada7d7646b6d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.0

Release files / jupyterlab_pygments-0.3.0-py3-none-any.whl

Download URL jupyterlab_pygments-0.3.0-py3-none-any.whl
Size 15.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
841a89020971da1d8693f1a99997aefc5dc424bb1b251fd6322462a1b8842780
BLAKE2b-256 checksum
How to use checksums
b1ddead9d8ea85bf202d90cc513b533f9c363121c7792674f78e0d8a854b63b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.0

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page