When I'm running a script that has plots with matplotlib, then I
cannot interact with the shell.

I think my default TkInter backend (tuned for use with IDLE) is not
really compatible with the Qt threads. How can I change the backend
for matplotlib when using spyder without changing my default
matplotlib rc file?

I'm working with matplotlib 0.99.1, so maybe things are different with
a more recent matplotlib.

Essentially, at least since early in the spyder 1.x series if I have a
matplotlib show() in my script then the external consoles show the
graphs. After closing the graphs I get the prompt in the shell but
when I hit enter after entering a python command it just goes to the
next line without ever executing the python command or showing any
results. When I run the script containing the plots in the ipython
shell, I got
"
In [5]: plt.show()

In [6]: Fatal Python error: PyEval_RestoreThread: NULL tstate

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
Fatal Python error: PyEval_RestoreThread: NULL tstate

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
"

In the 1.x series I could still use the internal shell, where the
interaction after plt.show() still worked.

WindowsXP, spyder 2 beta4

Thanks,

Josef

-- 
You received this message because you are subscribed to the Google Groups 
"spyder" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/spyderlib?hl=en.

Reply via email to