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

Out of curiousity: Expected behavior of matplotlib? #35

Open
1kastner opened this issue May 4, 2021 · 3 comments
Open

Out of curiousity: Expected behavior of matplotlib? #35

1kastner opened this issue May 4, 2021 · 3 comments

Comments

@1kastner
Copy link

1kastner commented May 4, 2021

Out of curiousity: What is the expected behavior of matplotlib inside nbterm? Just a few simple lines like this:

import matplotlib.pyplot as plt
plt.plot([1, 2, 3], [1, 4, 9], 'rs')
plt.show()

Should they show up in a separate window (if X11 or similar is available)? Would it rather fit the philosophy if the plot was converted to ASCII art?

@davidbrochart
Copy link
Owner

It would be better if plots show up inside the notebook, either through an ASCII art back-end for matplotlib (like matascii) or a terminal that is able to show images, like in itermplot for iTerm2 or matplotlib-backend-kitty for kitty.
See also #30.

@bluss
Copy link

bluss commented May 12, 2021

Even gnome-terminal is catching on, even if the procotols vary (they implement Sixel).

@davidbrochart
Copy link
Owner

You may want to checkout https://github.com/joouha/euporie, which supports matplotlib already.

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

3 participants