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

Unable to display Latex on foot terminal #101

Closed
MightyPlaza opened this issue Feb 18, 2024 · 7 comments
Closed

Unable to display Latex on foot terminal #101

MightyPlaza opened this issue Feb 18, 2024 · 7 comments

Comments

@MightyPlaza
Copy link

Using version 2.7.0, on foot terminal, I am unable to render anything with Latex (IPython.display or Markdown).
Using matplotlib.pyplot plots a graph as expected
On kitty everything works as expected
(behaviour does not change for foot or kitty with/without "graphics": "sixel")
Unsure if this is an issue with my system

Other minor (unrelated) issues I've found:

  • I can't seem to create any files without explicitly adding the .ipynb extension. euporie shows Saving... permanently
  • Changing color scheme to custom without having the colors set up results in a lockdown and a cpu core being at 100%. Killing the program and trying to start it, results in an error
  • Can anything be done for euporie to work with NumLock enabled? (Installation issues  #94)

Thanks for awesome project

@joouha
Copy link
Owner

joouha commented Feb 18, 2024

Hi,

  1. If LaTeX rendering is working as expected in kitty, you probably need to install a program which can convert from png to sixel, such as chafa, imagemagick, or the chafa.py python package.

    Kitty can display png images directly using the kitty graphics protocol, whereas foot can only display sixel graphics, so euporie needs some way to convert images into sixels.

  2. I think this file saving issue might already fixed in the dev branch. Could you explain exactly what's happening in a bit more detail for me?

  3. I've added default values for the custom color config options in dev, which should fix this 🤞

  4. I'll take a look at the numlock issue tomorrow. I thought I'd already fixed it, so thanks for letting me know it's still not working!

@MightyPlaza
Copy link
Author

  1. If LaTeX rendering is working as expected in kitty, you probably need to install a program which can convert from png to sixel, such as chafa, imagemagick, or the chafa.py python package.

tried installing all 3 and restarting euporie, still no output on foot

  1. I think this file saving issue might already fixed in the dev branch. Could you explain exactly what's happening in a bit more detail for me?

If I don't specify the .ipynb at the end of the name when creating a new file, nothing happens. It permanently says Saving... in the corner

@joouha
Copy link
Owner

joouha commented Feb 20, 2024

Ok, got it, thanks.

I've made a fix for the issue with saving notebooks without a file extension (a41b3b5), which will be in the next release.

The issue with LaTeX in foot is fixed in dev branch, so should work in the next release.

@joouha
Copy link
Owner

joouha commented Mar 1, 2024

I've just released v2.8.0, which should fix the issues reported here

@joouha joouha closed this as completed Mar 1, 2024
@MightyPlaza
Copy link
Author

can confirm all issues have been fixed (tab with numlock on still doesn't work, but the rest of the keys seem to work now)
thanks for the help

@joouha
Copy link
Owner

joouha commented Mar 1, 2024

Thanks. I've released published v2.8.1 with a (untested) fix for the tab key.

@MightyPlaza
Copy link
Author

can confirm it works
thanks again

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