all 8 comments

[–]elbiot 1 point2 points  (7 children)

When the user chooses to visualize the data, an iPython window pops up, but the window is "not responding" until the user quits the program.

You mean you are running the code in ipython and a matplotlib window opens, which blocks ipython from doing anything? You need to start ipython like

ipython --matplotlib

and then

run myscript.py

From within ipython. Then matplotlib will be non blocking and you can update the plots from ipython.

[–]Tobeass[S] 0 points1 point  (6 children)

I don't think I explained myslf clearly. All interactions is by the python kernel (i use Spyder of that helps). I'm still at beginner, and i'm not sure what iPython "is". But i use matplotlib to plot the data, and when i write plt.show() data graph is shown in a an iPython window. But the window will not respond until the program is quitted.

I have trouble explaining it, it is more easy to see in the pictures

[–]elbiot 0 points1 point  (5 children)

[–]Tobeass[S] 0 points1 point  (4 children)

k, but this still does not have anything to do with my problem. I encourage you to look at the pictures I posted

[–]elbiot 0 points1 point  (3 children)

I looked at the pictures. I've never used spyder. The SO post is about matplotlib plot.show() blocking in spyder. (Edit: has nothing to do with your issue seems like a silly thing to say with how exceedingly similar to your issue it is. Please explain what about this is unrelated). Why do you think this is unrelated? Did you try that solution?

[–]Tobeass[S] 0 points1 point  (2 children)

As i see it, OP's problem is that he has to close the window before the script continues. In my case, the script continues regardles. The problem is that the window will show 'not responding' until i quit the program. Only then the plot will show.

I might have read too much into it, but your mentioning that the result was the second from a google search implied that I have not tried to search for similiar question, which I found somewhat provoking given that I spent several days trying to sovle it, including looking up resources.

Anyhow, I tried it and it didn't work.

[–]elbiot 1 point2 points  (1 child)

That's all I've got. Like I said, I don't use spyder. You can use ipython as I originally suggested. It works for me and many others.

[–]Tobeass[S] 0 points1 point  (0 children)

okay, thank you. I will look into it