Skip to main content

kittyplot logo

kittyplot

Inline graphics backend for matplotlib. Renders plots directly in your terminal.

Supports the Kitty graphics protocol (Kitty, Ghostty, WezTerm) with automatic tmux passthrough.

Install

uv add kittyplot

Usage

Set the backend via MPLBACKEND environment variable or in code:

import matplotlib
matplotlib.use('module://kittyplot')
import matplotlib.pyplot as plt

plt.plot([1, 2, 3], [1, 4, 9])
plt.show()

Animation

Animations work automatically with FuncAnimation:

import matplotlib
matplotlib.use('module://kittyplot')
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
import numpy as np

x = np.linspace(0, 2 * np.pi, 100)
fig, ax = plt.subplots()
line, = ax.plot(x, np.sin(x))

def update(frame):
    line.set_ydata(np.sin(x + frame / 5.0))
    return line,

anim = FuncAnimation(fig, update, frames=200, interval=50, blit=False)
plt.show()

Press Ctrl-C to exit the animation. Set fig.canvas.fullscreen = True before creating the animation to use an alternate screen buffer.

tmux

Requires allow-passthrough in your tmux config:

set -g allow-passthrough on

Images use kitty virtual placements (unicode placeholders) so they anchor to the text buffer and scroll naturally within tmux panes.

Examples

Run with uv run:

uv run examples/simple.py
uv run examples/subplots.py
uv run examples/animation.py
uv run examples/lorenz.py
uv run examples/ggplot.py

License

Apache-2.0

Metadata

Release files for kittyplot 0.1.0

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

Source distribution (sdist)

Source distribution for kittyplot 0.1.0
File Size Uploaded
kittyplot-0.1.0.tar.gz 9.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kittyplot 0.1.0
File Interpreter ABI Platform
kittyplot-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.3 kB

Release files / kittyplot-0.1.0.tar.gz

Download URL kittyplot-0.1.0.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2c5ba81247e6b40c79214dcba0853a89d1c7c209503c98db08ca30ee132d4c75
BLAKE2b-256 checksum
How to use checksums
89b0e40742c4452cd65c21f2bd1d121a71859a0f37560d41c365431ef15b8744
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 9, 2026.

Transparency log

Release files / kittyplot-0.1.0-py3-none-any.whl

Download URL kittyplot-0.1.0-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8ecd7179b559453a7dc4e60953f738fc2f393f237611d430c5be87ae747363de
BLAKE2b-256 checksum
How to use checksums
1d9eb49ada96e2b6cef5d653335733b47f3afd170e351f1e5220b39a961b3c4e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 9, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 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