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

[Bug] Plot doesn't show up #44

Closed
tempegarit opened this issue Apr 24, 2022 · 2 comments
Closed

[Bug] Plot doesn't show up #44

tempegarit opened this issue Apr 24, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@tempegarit
Copy link

Describe the bug
When I ran :MagmaEvaluateLine, a popup showed up with message Out[5]: ✓ Done but a plot didn't show up. I had run :checkhealth and all was ok.

To Reproduce
Steps to reproduce the behavior:

  1. I wrote this code:
import numpy as np
import matplotlib.pyplot as plt

 x = np.linspace(-10, 10, 1000)
y = np.sin(x**2)

plt.plot(x, y);
  1. I ran :MagmaInit then chose python3.
  2. I ran all the line using :MagmaEvaluateLine.

Expected behavior
The line plt.plot(x,y); should show a plot, but it only shows Out[5]: ✓ Done

Screenshots
Screenshot 2022-04-25 061445

Desktop (please complete the following information):

  • OS: [wsl (windows subsystem for Linux) windows 10]
@tempegarit tempegarit added the bug Something isn't working label Apr 24, 2022
@dccsillag
Copy link
Owner

I'm fairly sure that the issue here is that Ueberzug (i.e., what we use to show images) does not work on WSL; if I'm not mistaken, WSL on Windows 10 does not support graphical applications, and WSL on Windows 11 supports graphical applications via Wayland. Ueberzug requires X11.

Therefore, this ends up being just another instance of #15.

@dccsillag
Copy link
Owner

I'm closing this as it's just a duplicate of #15 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants