[IPython-dev] ipython1 and synchronous printing of stdout

Laurent Dufrechou laurent.dufrechou@gmail....
Sun Jul 20 14:56:23 CDT 2008


Hi gael,
I've checked out your branch and done `python setup.py build_ext --inplace`
Launching your app:

laurent@Pep:~/ipython-sync-frontend/IPython$ python
./frontend/wx/wx_frontend.py
Traceback (most recent call last):
  File "./frontend/wx/wx_frontend.py", line 30, in <module>
    from IPython.frontend.prefilterfrontend import PrefilterFrontEnd
ImportError: No module named frontend.prefilterfrontend

Am I missing something?

laurent@Pep:~/ipython-sync-frontend/IPython/frontend$ ls
asyncfrontendbase.py  cocoa  frontendbase.py  __init__.py
linefrontendbase.py  tests  wx

Laurent

2008/7/20 Gael Varoquaux <gael.varoquaux@normalesup.org>:
>> I can off course monkey patch the output_trap with my own write method,
>> but this seems a bit ugly. What do the ipython1 developpers think the
>> right way of doing this (and maybe modifying output_trap) is?
>
> I went ahead experimenting, and created a subclass of output_trap gear
> towards printing via a callback, as can be seen on
> http://bazaar.launchpad.net/~gael-varoquaux/ipython/ipython-sync-frontend/annotate/1041?file_id=sync_output_trap.py-20080720174256-b1fz1ebbxl2ka4t9-1
>
> I hope this approach is OK. By passing this this output_trap to the
> interpreter I get the desired result, and I sync this approach is
> reusable for any synchronous frontend, such as the one into which
> ipython0 will, hopefully, morph one day.
>
> Gaël
> _______________________________________________
> IPython-dev mailing list
> IPython-dev@scipy.org
> http://lists.ipython.scipy.org/mailman/listinfo/ipython-dev
>


More information about the IPython-dev mailing list