Skip to main content

======================== pygments-ipython-console


Syntax coloring for IPython Console Files

Overview

This package provides a Pygments_ lexer for IPython Console Files. The lexer is published as an entry point and, once installed, Pygments will pick it up automatically.

You can then use the ipython language with Pygments::

$ pygmentize -l ipython test.ipy

[Or use the standard sphinx import of ipython_console_highlight.py] In Sphinx_ documents the lexer is selected with the highlight directive::

.. highlight:: ipython

.. _Pygments: http://pygments.org/ .. _Sphinx: http://sphinx-doc.org/

Thanks to pygments-openssl project for providing a template [https://github.com/stefanholek/pygments-openssl]

Requirements

This needs IPython 1.0+ for sphinxext module

Installation

Use your favorite installer to install pygments-ipython into the same Python you have installed Pygments. Constructing an egg from repository::

$ git clone https://sanguineturtle@bitbucket.org/sanguineturtle/pygments-ipython-console.git
$ cd pygments-ipython-console
$ python setup.py bdist_egg

For example [change directory to dist/ folder to locate egg file]::

$ easy_install pygments-ipython-console.egg

To verify the installation run::

$ pygmentize -L lexer | grep -i ipy
* ipy:
	IPy session (filenames *.ipy)

Changelog

  • Changed IPython lexer class name. [hplgit]

  • Initial release. [sanguineturtle]

Metadata

Release files for pygments-ipython-console 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pygments-ipython-console 1.0.1
File Size Uploaded
pygments-ipython-console-1.0.1.tar.gz 2.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pygments-ipython-console 1.0.1
File Interpreter ABI Platform
pygments_ipython_console-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 5.8 kB

Release files / pygments-ipython-console-1.0.1.tar.gz

Download URL pygments-ipython-console-1.0.1.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
92a785b3ec4117151aa0c87ec99fd319b0411a4dddd44a64ca6983efc4454ffa
BLAKE2b-256 checksum
How to use checksums
068aacd60c65ac71ac46f685a1a86d90439b7949f54e1e54dae3a94e331068ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.6.9

Release files / pygments_ipython_console-1.0.1-py3-none-any.whl

Download URL pygments_ipython_console-1.0.1-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fddc4119154bd9823d793a4a31988d903650466cac4e22325aefebab223d0775
BLAKE2b-256 checksum
How to use checksums
b2e1810bf235b286f4c11f1e70c46896c1dc989a77e7ed4882ba0e5010976b73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.6.9

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page