[IPython-dev] good news bad news

Brian Granger ellisonbg at gmail.com
Sat Aug 28 17:06:17 EDT 2010


On Fri, Aug 27, 2010 at 1:35 PM, Brian Granger <ellisonbg at gmail.com> wrote:
> On Fri, Aug 27, 2010 at 10:21 AM, Robert Kern <robert.kern at gmail.com> wrote:
>> On 8/27/10 12:46 AM, Brian Granger wrote:
>>> I have been playing more with the Qt Frontend that has GUi support.
>>> So far all of the testing I have done recently is with the Qt
>>> eventloop enabled in the kernel.
>>>
>>> Good news:
>>>
>>> * also all of the matplotlib examples that I have tried are working.
>>> I would say we are over 90% working with mpl examples.
>>> * I have started to try out tvtk/mayavi examples and most of them fail
>>> miserably, either freezing or crashing the kernel entirely.
>>>
>>> I think an in between thing to try is trait based apps.  Evan, do you
>>> have some good examples of trait apps we can try in the kernel?
>>
>> from enthought.traits.api import HasTraits, Float
>>
>> class Foo(HasTraits):
>>     x = Float()
>>
>> f = Foo()
>> f.edit_traits()
>
> I will give this a shot.

This now works.

>>> Like
>>> we had to modify matplotlib, I expect we will have to patch traits and
>>> Mayavi as well.
>>
>> Possibly. Both Traits and Pyface (and thus Envisage Workbench apps like Mayavi)
>> do try to check if there is a QApplication already existing before creating one,
>> but we may not be doing exactly the right things. Search for QApplication in
>> enthought.traits.ui.qt4.toolkit and enthought.pyface.ui.qt4.init to see what we do.
>
> I looked at this code already and it looks like it is handling the
> QApplication creation OK, but I need to look a bit more at how it is
> starting the event loop.
>
>> Are you sure that you have ETS_TOOLKIT=qt4 set?
>
> Nope, that would probably make a huge difference!  Thanks!

This did help some issues, but some remain.

Brian

> Brian
>
>> --
>> Robert Kern
>>
>> "I have come to believe that the whole world is an enigma, a harmless enigma
>>  that is made terrible by our own mad attempt to interpret it as though it had
>>  an underlying truth."
>>   -- Umberto Eco
>>
>> _______________________________________________
>> IPython-dev mailing list
>> IPython-dev at scipy.org
>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>>
>
>
>
> --
> Brian E. Granger, Ph.D.
> Assistant Professor of Physics
> Cal Poly State University, San Luis Obispo
> bgranger at calpoly.edu
> ellisonbg at gmail.com
>



-- 
Brian E. Granger, Ph.D.
Assistant Professor of Physics
Cal Poly State University, San Luis Obispo
bgranger at calpoly.edu
ellisonbg at gmail.com



More information about the IPython-dev mailing list