Open ucl98 opened 17 hours ago
hi @ucl98
interesting! (especially wezterm being the one that complains)
let me do a few tests and get back to you
I don't run matplotlib myself, but I use nvim, tmux, and wezterm (on macos, but linux too if I needed to check) — and it doesn't seem to reproduce for me
some questions to try to corner this
looking at the wezterm code (from your error message)
this seems to happen on a width = 0
in the ImgCatCommand
: compute_image_cell_dimensions
function (which seems … weird?)
another line of inquiry:
you could try adding echom
debug messages around this code and see what EXACTLY gets passed in
let me know what you find ^
I am using Neovim, WezTerm, and Tmux. My setup involves sending lines from Neovim to a Tmux window where an IPython session is running. This setup works well and allows for plot display in WezTerm without issues.
However, I encounter a problem when sending the command
plt.show()
via vim-slime; it causes WezTerm to panic. In contrast, when I manually typeplt.show()
in the same IPython instance, the plot displays correctly with no issues. Notably, lines 18-21 are sent via vim-slime, and lines 22-25 are typed manually.Versions
Neovim:
vim-slime
matplotlib-backend-wezterm
WezTerm:
Tmux:
System
Additional Informations
Sections from my neovim config: