Down Another Pathway with Plot-Show

Certainly in IDLE, when one hits a show() in a def, the program does not continue to the next statement. It goes somewhere else, because my program continues normally. Apparently, it goes back up the def calls to the "main" program, which is a loop that just reads the next file to perform more of what I expect. If I know this to be true*, that allows a "workaround" with globals.

* There is another def that uses plot-show, and it continues without any notable difficulty. The show() is the last statement in the def. Of course, since show() is a legitimate use, if one knows the "end" rule, this seems quite reasonable way to operate.

···

--
"Crime is way down. War is declining. And that's far from the good news." -- Steven Pinker (and other sources) Why is this true, but yet the media says otherwise? The media knows very well how to manipulate us (see limbic, emotion, $$). -- WTW

Well, well. One can get interesting results by persistence. The code I speak of here now works without using ipython.
All it took was moving the offending def (show() at the end) and putting it somewhere else where the completion of the def bounced right back into the main flow of the program. The desired result was that statistics print outs to the shell now do not block the advancement of the video to the next event. All this from the single clue I offered several times. Another plot in the program that works properly. Maybe that plot and my plot break some fundamental Python law, but they both work.

So far so good. Done.

Now to add the individual markers to the path at key points, as per finally concluding that wild goose chase with Jae-Joon Lee a short while ago.

···

On 2/12/2010 7:40 PM, Wayne Watson wrote:

Certainly in IDLE, when one hits a show() in a def, the program does not
continue to the next statement. It goes somewhere else, because my
program continues normally. Apparently, it goes back up the def calls to
the "main" program, which is a loop that just reads the next file to
perform more of what I expect. If I know this to be true*, that allows
a "workaround" with globals.

* There is another def that uses plot-show, and it continues without any
notable difficulty. The show() is the last statement in the def. Of
course, since show() is a legitimate use, if one knows the "end" rule,
this seems quite reasonable way to operate.
   
--
"Crime is way down. War is declining. And that's far from the good news." -- Steven Pinker (and other sources) Why is this true, but yet the media says otherwise? The media knows very well how to manipulate us (see limbic, emotion, $$). -- WTW