--- id: ipython-pygments-lexers version: "1.1.1" license: unclear license_treatment: permissive maintenance: aging --- # ipython-pygments-lexers — Defines a variety of Pygments lexers for highlighting IPython code. License: permissive · Maintenance: aging · Popularity: top 1,000 on PyPI ## Install pip install ipython-pygments-lexers uv add ipython-pygments-lexers poetry add ipython-pygments-lexers ## Description A [Pygments](https://pygments.org/) plugin for IPython code & console sessions [IPython](https://ipython.org/) 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. ## AI interpretation — verify before relying Provides Pygments syntax highlighters for IPython code, console sessions, and special syntax like magics and shell commands. 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. [View on SkillFed](https://skillfed.io/packages/ipython-pygments-lexers) · [View on PyPI](https://pypi.org/project/ipython-pygments-lexers/)