skillfed

jupyterlab-pygments

Pygments theme using JupyterLab CSS variables

jupyterlab-pygments Permissive license Copyright (c) 2015 Project Jupyter Contributors All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following… (full text in the JSON record) DORMANT 80 v0.3.0 released

Install

jupyterlab-pygments on PyPI

pip

pip install jupyterlab-pygments

uv

uv add jupyterlab-pygments

poetry

poetry add jupyterlab-pygments

Package facts

License Copyright (c) 2015 Project Jupyter Contributors All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following… (full text in the JSON record) (permissive)
Python support supports the current Python release (>=3.8)
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance dormant — 994 days since the last release
Last repo commit
First released
Popularity one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13)
Known vulnerabilities none known (OSV.dev, checked 2026-08-13)

Evidence: jupyterlab_pygments-0.3.0-py3-none-any.whl

Framework :: JupyterFramework :: Jupyter :: JupyterLabFramework :: Jupyter :: JupyterLab :: 4Framework :: Jupyter :: JupyterLab :: ExtensionsFramework :: Jupyter :: JupyterLab :: Extensions :: PrebuiltLicense :: OSI Approved :: BSD LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

About jupyterlab-pygments

from the package's own PyPI description — quoted content, verbatim

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 (image)

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

Read as markdown · JSON record · Source repository · Homepage

AI interpretation — verify before relying

AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page

Provides a syntax-highlighting theme for Pygments that applies JupyterLab's CSS variables, enabling JupyterLab's visual styling in Pygments-generated HTML output.

Low friction: pure Python wheel with no runtime dependencies. Maintenance is dormant (994 days since last release in November 2023), but the repository remains active with 80 stars and supports Python 3.8–3.12.

BSD license (permissive); you may use, modify, and distribute this package freely provided you retain copyright notices and disclaimers.

Usage

pip install jupyterlab_pygments

from jupyterlab_pygments import JupyterStyle

Verdict: A lightweight, dependency-free theme package that brings JupyterLab's visual style to syntax-highlighted code. Dormant maintenance and no known vulnerabilities make it stable for existing projects, though updates to JupyterLab's themes will not be reflected without a new release.

Needs verification

  • Whether Pygments 2.4.1 is an automatic runtime dependency or must be installed separately.
  • Current compatibility with JupyterLab 4.x and recent versions of the underlying theme dependency.
  • How the theme integrates with code generation workflows in practice.
pygments syntax highlighting themejupyterlab code coloringjupyter syntax themecode highlighting themejupyter css variables themesyntax coloring for jupyter

Similar packages