skillfed

ipython-pygments-lexers

Defines a variety of Pygments lexers for highlighting IPython code.

ipython-pygments-lexers Permissive license AGING 0 v1.1.1 released

Install

ipython-pygments-lexers on PyPI

pip

pip install ipython-pygments-lexers

uv

uv add ipython-pygments-lexers

poetry

poetry add ipython-pygments-lexers

Package facts

License not declared (permissive)
Python support supports the current Python release (>=3.8)
Install friction low — pure-Python wheel
Runtime dependencies 1 — pygments
Maintenance aging — 573 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: ipython_pygments_lexers-1.1.1-py3-none-any.whl

Framework :: IPythonLicense :: OSI Approved :: BSD License

About ipython-pygments-lexers

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

A Pygments plugin for IPython code & console sessions

IPython is an interactive Python shell. Among other features, it adds some special convenience syntax, including %magics, !shell commands and help?. This package contains lexers for these, to use with the Pygments syntax highlighting package.

  • The ipython lexer should be used where only input code is highlighted
  • The ipythonconsole lexer works for an IPython session, including code, prompts, output and tracebacks.

These lexers were previously part of IPython itself (in IPython.lib.lexers), but have now been moved to a separate package.

Read as markdown · JSON record · Source repository

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 Pygments syntax highlighters for IPython code, console sessions, and special syntax like magics and shell commands.

Low friction: pure Python wheel with a single runtime dependency (pygments). Maintenance status is aging—last commit 2025-12-15, no releases since 1.1.1 on 2025-01-17—but the package is not archived.

Classified as permissive (BSD License per OSI classifier), so commercial and private use are unrestricted; no copyleft obligations.

Usage

pip install ipython-pygments-lexers

from pygments.lexers import get_lexer_by_name
lexer = get_lexer_by_name('ipython')
# Use lexer with pygments.highlight() or other Pygments tools

Requires Python ≥3.8 and pygments to be installed.

Verdict: A lightweight, permissively licensed Pygments plugin for IPython syntax highlighting with minimal dependencies. No known vulnerabilities and supports Python 3.8+. Aging maintenance status (last commit 2025-12-15) is the only concern; suitable for stable use but monitor for long-term support.

Needs verification

  • Whether the aging maintenance status reflects intentional stability or abandonment risk.
  • Whether the package is actively used downstream or if its top_1000 tier reflects historical rather than current adoption.
ipython syntax highlightingpygments ipython lexerhighlight ipython consoleipython magic syntax coloringipython code formatterpygments ipython plugin

Similar packages