From: Alan G I. <ai...@am...> - 2004-09-28 12:07:13
|
On Mon, 27 Sep 2004, John Hunter apparently wrote: > But for classroom use, I suggest you just put "interactive > : True" in your rc file and then you have no need for > show. Is there a downside to this approach? I'm not sure. There are two different classroom situations. i. ad hoc drawing in the classroom from a Python shell. Here setting interactive makes good sense, it seems. ii. running prepared scripts for prepared graphical illustrations. Here I will usually have several figures that I want displayed sequentially. With interactive=False, this approach seems to work fine: I close a figure and the next appears (TKAgg). With interactive=True (and the show commands removed), this approach seems to choke with an abnormal program termination: Fatal Python Error: PyEval_RestoreThread: NULL tstate Since I wish to do both, I decided I shd have interactive:False in my rc file. Am I overlooking something? Thanks, Alan |