next up previous
: Reporting bugs : IPython An enhanced Interactive : Support for the matplotlib



Threading support [disabled]

WARNING: this is temporarily disabled, until more testing and debugging can be done. The only thread-related features which are currently active are those specific to matplotlib, available via the -pylab option.

IPython, via the -gthread and -wthread options (described in Sec. 5.1), can run in multithreaded mode to support pyGTK and WXPython applications respectively. Both of these GUI toolkits need to control the python main loop of execution, so under a normal Python interpreter, starting a pyGTK (or WXPython) application will immediately freeze the shell.

Using one of these options (you can only use one at a time), the graphical loop and IPython's code execution run in separate threads, allowing you to test interactively (with @run, for example) your code without blocking issues.

Platform issues

The threading support is still somewhat experimental, and it has only seen reasonable testing under Linux. Threaded code is particularly tricky to debug, and it tends to show extremely platform-dependent behavior. Since I only have access to Linux machines, I will have to rely on user's experiences and assistance for this area of IPython to improve under other platforms.

So far, it appears that under OSX things work somewhat (but only very preliminary tests have been done). Under Windows XP, early tests indicate that things break very badly. Any help on addressing these issues will be most welcome.


next up previous
: Reporting bugs : IPython An enhanced Interactive : Support for the matplotlib
Fernando Perez 平成16年8月30日