Skip to content

Tags: jktr/matplotlib-backend-kitty

Tags

v2.1.1

Toggle v2.1.1's commit message

Verified

This commit was signed with the committer’s verified signature.
jktr Konrad Tegtmeier
enable packaging via setuptools

I couldn't get setuptools to use the root directory as
the source of the package, so I've moved everything to a
sub-folder, which is a workflow with better documentation.

A symlink is left behind to avoid breaking the setup for
people that install this to their pythonpath via git clone.

v2.1.0

Toggle v2.1.0's commit message

Verified

This commit was signed with the committer’s verified signature.
jktr Konrad Tegtmeier
add option to disable automatic figure resizing

A user requested that there be an option to disable
automatic resizing to support certain workflows.

As accessing the actual backend instance is a bit awkward,
we expose this setting as an environment variable called
`MPLBACKEND_KITTY_SIZING`, named analogously to MPL's
`MPLBACKEND` variable used to select backends.

closes #3

v2.0.0

Toggle v2.0.0's commit message

Verified

This commit was signed with the committer’s verified signature.
jktr Konrad Tegtmeier
fix: add support for matplotlib 3.3.0

On mpl 3.3.0, unfinished figures were being destroyed
before their subplots became available. This problem
resulted in only the background of a figure being shown.

We now also distinguish between interactive
and non-interactive matplotlib modes,
defaulting to interactive if `-i` is passed.

fixes #1

v1.0.1

Toggle v1.0.1's commit message

Verified

This commit was signed with the committer’s verified signature.
jktr Konrad Tegtmeier
remove absolute positioning & fix displaying figures

It seems like kitty changed their handling of images somewhat.

The result is that the initial scrolling issues that lead to
prefering absolute positioning seem to be fixed, which means
we can simply use --align=left now.

Another side effect was that display of images was broken at
some point. This should be fixed as well with the above change.

Lastly, I've dropped transparency, as cell content now flows
properly around images, even in scrollback.

v1.0.0

Toggle v1.0.0's commit message

Verified

This commit was signed with the committer’s verified signature.
jktr Konrad Tegtmeier
properly scale mpl figure to kitty's size

Note that the transparency and bg color settings used here
make some assumptions about your terminal's color scheme.