jktr / matplotlib-backend-kitty

show matplotlib plots directly in your kitty terminal
Creative Commons Zero v1.0 Universal
137 stars 16 forks source link

Make the interactive environment detection heuristic work for ipython #12

Closed ayorgo closed 11 months ago

ayorgo commented 1 year ago

Background

When playing around with Python, especially when plotting graphs is involved, I use ipython most of the time.

Issue

The backend doesn't recognise ipython as an interactive environment.

Solution

Pick a different heuristic that recognises ipython, python -i and simple python in an interactive shell as interactive.

jktr commented 11 months ago

fixed in cbe4fe231d758b945c73ab89aee458acb12255d3, based on #13