Skip to content

Matplotlib interactive mode not working on WinΒ #1

@melund

Description

@melund

@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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions