[IPython-dev] Experimental GLUT integration
Nicolas Rougier
Nicolas.Rougier at inria.fr
Tue Sep 13 07:39:41 EDT 2011
I'm still fighting against glut and I would have one question:
To make things work, I need to intercept SIGINT and to print explicitly 'KeyboardInterrupt' and then reprint the prompt.
What is the best way to reprint the current prompt ?
nicolas
On Sep 13, 2011, at 0:02 , Fernando Perez wrote:
> Hi folks,
>
> On Fri, Aug 26, 2011 at 10:30 AM, Nicolas Rougier
> <Nicolas.Rougier at inria.fr> wrote:
>>
>> I've coded an experimental GLUT integration (thanks to Fernando's explanations) for the new input hook system. I would like to know if people could test it and review if the code's ok.There is also an integration example in the docs/examples/lib/gui-glut.py
>>
>> You should be able to type:
>>
>> In [5]: %gui glut
>> In [6]: %run gui-glut.py
>>
>> At this point a small black window should appear
>>
>> In [7]: gl.glClearColor(1,1,1,1)
>>
>> The window color should change to white.
>
> Nicolas has made these into proper pull requests, both for glut and for pyglet:
>
> https://github.com/ipython/ipython/pull/742
> https://github.com/ipython/ipython/pull/743
>
> but as you can see from our discussions, there are still some
> lingering issues. If you have OpenGL knowledge, your help would be
> greatly appreciated, you can just comment on the discussions and I'm
> sure any feedback you can provide Nicolas will help.
>
> Ultimately it would be great to offer out of the box support for
> interactive control of glut and pyglet apps from IPython.
>
> Cheers,
>
> f
More information about the IPython-dev
mailing list