Bug 649281

Summary: Control is not returned to main program
Product: [Fedora] Fedora Reporter: Cassio <cassiomartini>
Component: ipythonAssignee: Thomas Spura <tomspur>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: bkearney, gwync, jspaleta, sergio.pasra, sh1, shahms, tomspur
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipython-0.10.2-1.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-20 03:25:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Cassio 2010-11-03 12:57:12 UTC
Description of problem:
When plotting a figure with matplotlib it takes control of the main program shell (ipython) and doesn't return it.

Version-Release number of selected component (if applicable):
Name        : python-matplotlib
Arch        : i686
Version     : 1.0.0
Release     : 2.fc14
Size        : 22 M
Repo        : installed

Name        : ipython
Arch        : noarch
Version     : 0.10.1
Release     : 1.fc14
Size        : 4.1 M
Repo        : installed


How reproducible: Always.


Steps to Reproduce:
1. Run ipython -pylab
2. type plot()
3. type show()
  
Actual results:
The figure is shown (as a blank plot), however the input terminal of ipython stays busy. If I close the figure the control is still stuck. Pressing ctrl+c gives:

KeyboardInterrupt                         Traceback (most recent call last)

/home/cassio/<ipython console> in <module>()

/usr/lib/python2.7/site-packages/matplotlib/backends/backend_gtk.pyc in show(mainloop)
     76     if mainloop and gtk.main_level() == 0 and \
     77                             len(Gcf.get_all_fig_managers())>0:
---> 78         gtk.main()
     79 
     80 def new_figure_manager(num, *args, **kwargs):

KeyboardInterrupt: 


Expected results:

The control should be returned to the main ipython program once the figure has been displayed.

Additional info: I'm guessing this is a problem with the GtkAgg backend. Installing matplotlib-python-tk and creating the ~/.matplotlib/matplotlibrc file with backend:TkAgg property works around this issue.

Comment 1 Thomas Spura 2010-11-16 13:57:32 UTC
This seems to be fixed in the ipython git repo.

But unfortunately, I don't know how to properly backport the "fix", because ipython changed almost everywhere compared to 0.10.1.

So it would be better to use the workaround for now and wait for 0.11...

Sorry.

Comment 2 Fedora Update System 2011-04-09 11:47:50 UTC
ipython-0.10.2-1.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/ipython-0.10.2-1.fc14

Comment 3 Fedora Update System 2011-04-09 11:48:03 UTC
ipython-0.10.2-1.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/ipython-0.10.2-1.fc15

Comment 4 Fedora Update System 2011-04-09 11:48:15 UTC
ipython-0.10.2-1.fc13 has been submitted as an update for Fedora 13.
https://admin.fedoraproject.org/updates/ipython-0.10.2-1.fc13

Comment 5 Fedora Update System 2011-04-09 21:19:03 UTC
Package ipython-0.10.2-1.fc13:
* should fix your issue,
* was pushed to the Fedora 13 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing ipython-0.10.2-1.fc13'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/ipython-0.10.2-1.fc13
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2011-04-20 03:25:25 UTC
ipython-0.10.2-1.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2011-04-20 19:19:37 UTC
ipython-0.10.2-1.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2011-04-20 19:21:39 UTC
ipython-0.10.2-1.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.