Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graphics rendering bugs #105

Closed
kalocsaibotond opened this issue Apr 6, 2024 · 1 comment
Closed

Graphics rendering bugs #105

kalocsaibotond opened this issue Apr 6, 2024 · 1 comment

Comments

@kalocsaibotond
Copy link

I have tried out euporia on Windows 10 and it seems to be in a quite buggy state, unfortunately, as one can see in the image:
image

Here I use:

  • Python 3.11.8 in an Anaconda environment
  • The latest WezTerm 20240203-110809-5046fc22 release
  • Euporie 2.8.1 that I installed with the python -m pip install --user euporie instruction. Interestingly, I do not see a 2.8.1 release on github. The latest release, as far as I see is 2.7.0. Is the 2.8.1 an unintenionally released nightly build?

I launched euporie-notebook with the --graphics iterm and --force-graphics command line arguments.

I also tried the same code snippet with euporia-console˛, with the same command line arguments. In this case, the console replied that it is unable to render the image with the ITerm protocol, and then rendered it in such a way that the majority of the image was hanged out of the right edge of the window, and only the tick labels on the vertical axis seeable in the window.

It is sad that it is in such a buggy state. Without these bugs, Euporie would be an amazing tool for anyone who does data-sciene / machine learning on remote machine.

@joouha
Copy link
Owner

joouha commented Apr 6, 2024

Hello,

Thank you for taking the time to write this up.

This is not an issue with euporie, but an issue with terminal graphics on Windows. See this issue for more info:

wez/wezterm#1236

I hope we can find a workaround which works for you!

If you use WSL, there are a few work-arounds you can try:

  • Run the Linux version of wezterm under WSLg
  • Use the Windows version of wezterm to connect to WSL over SSH (wezterm ssh 172.xx.yy.zz)
  • Use wsltty terminal, which supports sixel (& possibly iterm) graphics

If you're stuck using Windows-native Python, there's not a whole lot you can do until Windows implements ConPTY pass-through.

  • You can set --graphics=none and rely on ASCII graphics, will prevent the glitching issues you experienced, but obviously image quality is much lower.
  • You could also try using mintty terminal, which apparently supports sixel graphics on Windows (I haven't tested this.

Version 2.8.1 is the current latest version. PyPi is the place to track the "official" latest version. I have to manually add the realeases to GitHub, and must have forgotten for the v2.8 releases! I could probably create a GitHub workflow to do this automatically.

@joouha joouha closed this as completed Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants