--- id: jupyterlab-pygments version: "0.3.0" 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) license_treatment: permissive maintenance: dormant --- # jupyterlab-pygments — Pygments theme using JupyterLab CSS variables License: permissive · Maintenance: dormant · Popularity: top 1,000 on PyPI ## Install pip install jupyterlab-pygments uv add jupyterlab-pygments poetry add jupyterlab-pygments ## Description # JupyterLab Pygments Theme This package contains a syntax coloring theme for [pygments](http://pygments.org/) 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](pygments.gif) ## 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](http://pygments.org) 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](https://www.npmjs.com/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... ## AI interpretation — verify before relying Provides a syntax-highlighting theme for Pygments that applies JupyterLab's CSS variables, enabling JupyterLab's visual styling in Pygments-generated HTML output. 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. [View on SkillFed](https://skillfed.io/packages/jupyterlab-pygments) · [View on PyPI](https://pypi.org/project/jupyterlab-pygments/)