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

Matplotlib interactive mode not working on Win #1

Open
melund opened this issue Feb 25, 2017 · 0 comments
Open

Matplotlib interactive mode not working on Win #1

melund opened this issue Feb 25, 2017 · 0 comments

Comments

@melund
Copy link
Member

melund commented Feb 25, 2017

@scopatz recently fixed part of the mpl xontrib xonsh/xonsh#2225. But the functionality doesn't work completely work on Windows. Figures still block.

See here:
image

It just shows a blank figure. If I then run plt.show() the figure renders but then the prompt it blocked. Closing the figure returns the prompt. But if I press ctrl-c instead I get the following error.

snail@sea ~\Documents\xonsh ie
$ plt.show() (CTRL-C)
QObject::killTimers: timers cannot be stopped from another thread
PS C:\Users\mel\Documents\xonsh>

I looked for solutions. @asmeurer recently asked a related question on SO.
http://stackoverflow.com/questions/42019739/how-to-build-a-python-repl-with-non-blocking-matplotlib-like-ipythons-matplot

We may have to hook into PTK's eventloop. I wonder if this is also the solution on Windows.

@asmeurer . Just curious what REPL are you building?

For community

⬇️ Please click the 👍 reaction instead of leaving a +1 or 👍 comment

@anki-code anki-code transferred this issue from xonsh/xonsh Mar 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant