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.2.2

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.2.2
File Size Uploaded
jupyterlab_pygments-0.2.2.tar.gz 132.4 kB Details

Built distribution (wheel)

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

Total release size: 154.3 kB

Release files / jupyterlab_pygments-0.2.2.tar.gz

Download URL jupyterlab_pygments-0.2.2.tar.gz
Size 132.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7405d7fde60819d905a9fa8ce89e4cd830e318cdad22a0030f7a901da705585d
BLAKE2b-256 checksum
How to use checksums
698e8ae01f052013ee578b297499d16fcfafb892927d8e41c1a0054d2f99a569
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/0.0.0 CPython/3.10.4

Release files / jupyterlab_pygments-0.2.2-py2.py3-none-any.whl

Download URL jupyterlab_pygments-0.2.2-py2.py3-none-any.whl
Size 22.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
2405800db07c9f770863bcf8049a529c3dd4d3e28536638bd7c1c01d2748309f
BLAKE2b-256 checksum
How to use checksums
c07ec3d1df3ae9b41686e664051daedbd70eea2e1d2bd9d9c33e7e1455bc9f96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/0.0.0 CPython/3.10.4

Release history Release notifications | RSS feed

0.3.0

2 release files

This release

0.2.2 This release

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