jupyterlab-pygments
Pygments theme using JupyterLab CSS variables
Decision gist · record as of 2026-08-14
Yes, if you need Pygments-generated HTML to match JupyterLab's visual theme. The package is lightweight, dependency-free, and permissively licensed. Dormant maintenance is a minor concern—no active development for 995 days—but the package solves a narrow, stable problem unlikely to require frequent updates. Install it if visual consistency between Jupyter and static HTML output matters to your workflow.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Pygments 2.4.1 or later; CSS output depends on JupyterLab theme CSS variables being available in the rendering context.
- Low install friction with no runtime dependencies.
- Dormant maintenance status (last release 995 days ago) suggests stability but no active development; repository remains active with recent commits.
License · maintenance · safety
permissive license (permissive) — BSD license (permissive) allows use in most projects with minimal restrictions; requires only copyright notice retention in source and binary distributions.
last release 2023-11-23 (995 days) · last repo commit 2024-09-03 · 80 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 64,106,985 downloads/mo, #492 on PyPI
Alternatives
Verify before relying
pip install jupyterlab_pygments
from pygments.formatters import HtmlFormatter
from jupyterlab_pygments import JupyterStyle
formatter = HtmlFormatter(style=JupyterStyle)- Whether the theme works with current versions of @jupyterlab/codemirror beyond the documented 0.19.1, ^1.0, and ^2.0 ranges.
- How well the theme adapts to custom JupyterLab theme modifications or third-party themes.
- Whether dormant status means the package will receive updates for future Pygments or JupyterLab breaking changes.
What it is and what it does
JupyterLab Pygments is a Pygments syntax highlighting theme that bridges JupyterLab's visual styling with Pygments-generated HTML. It translates JupyterLab's CSS variables into Pygments token colors, allowing code highlighted by Pygments to match the appearance of code in JupyterLab itself. This is useful when generating static HTML documentation or reports from Jupyter notebooks where visual consistency matters.
The package has no runtime dependencies and installs cleanly as a pure Python wheel. It supports Python 3.8 through 3.12 and is designed to work with Pygments 2.4.1 and JupyterLab's CodeMirror theme CSS. The maintainers acknowledge that Pygments' HTML class granularity cannot fully replicate CodeMirror's syntax coloring (notably for property differentiation), so the theme provides a close approximation rather than pixel-perfect parity.
Use it for
- Generate HTML documentation from Jupyter notebooks with syntax highlighting that matches JupyterLab's visual theme.
- Export code snippets to static HTML or PDF while preserving JupyterLab's color scheme for consistency.
- Build custom documentation tools that use Pygments for code highlighting but want JupyterLab-style colors.
- Create blog posts or tutorials featuring Jupyter code with familiar JupyterLab syntax coloring.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need Pygments-generated HTML to match JupyterLab's visual theme.
The package is lightweight, dependency-free, and permissively licensed. Dormant maintenance is a minor concern—no active development for 995 days—but the package solves a narrow, stable problem unlikely to require frequent updates. Install it if visual consistency between Jupyter and static HTML output matters to your workflow.
Install
jupyterlab-pygments on PyPI
Before you install
Low install friction with no runtime dependencies. Dormant maintenance status (last release 995 days ago) suggests stability but no active development; repository remains active with recent commits.
Requires Pygments 2.4.1 or later; CSS output depends on JupyterLab theme CSS variables being available in the rendering context.
License in practice
BSD license (permissive) allows use in most projects with minimal restrictions; requires only copyright notice retention in source and binary distributions.
Quickstart
pip install jupyterlab_pygments
from pygments.formatters import HtmlFormatter
from jupyterlab_pygments import JupyterStyle
formatter = HtmlFormatter(style=JupyterStyle)
Verify before relying
- Whether the theme works with current versions of @jupyterlab/codemirror beyond the documented 0.19.1, ^1.0, and ^2.0 ranges.
- How well the theme adapts to custom JupyterLab theme modifications or third-party themes.
- Whether dormant status means the package will receive updates for future Pygments or JupyterLab breaking changes.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Dormant 995 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 64,106,985 / month, #492 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | 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 |
Evidence: jupyterlab_pygments-0.3.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “pygments theme jupyterlab”
- jupyterlab-pygmentsProvides a Pygments syntax highlighting theme that applies…
- mkdocs-materialMaterial for MkDocs is a professional theme and extension for MkDocs…
- pygments-stylesProvides a curated collection of Pygments syntax-highlighting color…
Give your agent the search over MCP, or paste the wish link into any chat.
More HTML packages
MarkupSafe provides a text object that escapes special characters so untrusted strings can be safely embedded in HTML and XML without injection attacks.
Jinja2 is a templating engine that renders dynamic content by combining templates with Python-like syntax and data, supporting template inheritance, macros, autoescaping, and sandboxed execution.
Beautiful Soup parses HTML and XML documents into a navigable tree, providing Pythonic methods to search, iterate, and modify the parsed content.
Install it if you need to parse or extract data from markup documents.
lxml provides Python bindings to libxml2 and libxslt, enabling parsing, validation, and transformation of XML and HTML documents through an ElementTree-compatible API with support for XPath, XSLT, and schema validation.
Install it if you need robust XML/HTML parsing, validation, or transformation; avoid it only if you must stay pure-Python and can accept slower performance.
Docutils converts plaintext documentation in reStructuredText format into multiple output formats including HTML, XML, and LaTeX using a modular processing system.
Converts Markdown text to HTML using a Python implementation of John Gruber's Markdown specification, with support for extensions.
Install it if you need to parse Markdown in Python.
See also ipython-pygments-lexers · pygments-styles · accessible-pygments · Pygments · fluent.pygments · jupyter_highlight_selected_word · types-Pygments · sphinx-book-theme · ansible-pygments · jupyterlab