Skip to content

Fails with IPython #11

@eulerfan271

Description

@eulerfan271

In an IPython (or Jupyter) console, imgcat errors and fails to load images, even when using kitty and explicitly setting the TERM environment variable to xterm-kitty. I'm not sure if this a bug report or feature request (or even a problem with Jupyter!), especially since the IPython/Jupyter console explicitly changes the TERM environment variable. I think this would be a useful feature/fix in any case, as an IPython provides many benefits over a python REPL.

Steps to reproduce:
-Start an IPython or Jupyter console using kitty (problem occurs with both python 3.6 and 3.8 for me)
-Explicitly change TERM value with %set_env TERM=xterm-kitty [or don't, doesn't make a difference in the outcome :)]
-Set matplotlib backend to imgcat, and plot something
-imgcat throws 'OutStream' object has no attribute 'buffer'

The module is working perfectly for me in kitty in a python REPL. Thanks for this great project!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions