One of the major mysteries concerning Leo's IPython bridge may have been resolved.
The reason that the IPython and Qt event loops can coexist is because IPython "hijacks" (replaces) various event loops! I'm still studying this. The relevant code (at least in the maintenance release that supports Leo's IPython bridge) is in Shell.py. I'm not sure exactly when the "hijacking" occurs. IPython contains various threading options, in particular, -q4thread, but I have not been able to get that to work yet... At present, the IPython interp runs very slowly when the bridge is in effect. It may be that specifying the -q4thread option at IPython startup may help. Or not... In any event, threading seems to be the topic of the week. IPython is sophisticated in this regard, so much so that most of what is going on seems obscure. It's a bit outside my comfort zone, but everything is in pure Python, so everything can be studied easily. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" 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/leo-editor?hl=en.
