Merge lp:~jtaylor/ubuntu/natty/ipython/ipython-fix-777420 into lp:ubuntu/natty/ipython
Status: | Merged | ||||
---|---|---|---|---|---|
Merge reported by: | Martin Pitt | ||||
Merged at revision: | not available | ||||
Proposed branch: | lp:~jtaylor/ubuntu/natty/ipython/ipython-fix-777420 | ||||
Merge into: | lp:ubuntu/natty/ipython | ||||
Diff against target: |
69 lines (+49/-0) 3 files modified
debian/changelog (+6/-0) debian/patches/fix_blocking_show.patch (+42/-0) debian/patches/series (+1/-0) |
||||
To merge this branch: | bzr merge lp:~jtaylor/ubuntu/natty/ipython/ipython-fix-777420 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Barry Warsaw (community) | Approve | ||
Ubuntu branches | Pending | ||
Review via email: mp+62311@code.launchpad.net |
Description of the change
Description: Fix blocking show
remove the check for the gtk.set_interactive feature, always available in natty
the check causes pylab.show() to block
Bug-Ubuntu: https:/
Bug: https:/
Applied-Upstream: 0.10.2
Origin: adapted from https:/
TEST CASE 1
cp /etc/matplotlibrc ~/.matplotlib/
# set backend: to GTKAgg in that file
ipython -pylab
plot([1,2])
# plot should show but doesn't
show()
# plot does not show or function blocks
TEST CASE end
from bug 777420 comment 8
TEST CASE2:
1) install ipython, python-
2) Start "ipython -wthread", then use the following two commands:
from enthought.mayavi import mlab
mlab.test_
=> the GUI window is unresponsive unless the 'show()' command is passed - this is fixed by the new package (see upstream report)
END TEST CASE
To see the fix in action, I just installed ipython and python-matplotlib, then did:
$ ipython -pylab -gthread
at the prompt, hit C-d and watch it hang. With this patch, ipython exits properly. The patch looks fine to me so I think it should be SRU'd. I'm not an ipython user but I couldn't detect any adverse effects from the patch. I'll get the SRU process started and follow up in the bug report. When the new package lands in natty-proposed, please test it.