Bug 663823 - ipython -pylab interactive plotting no longer works
Summary: ipython -pylab interactive plotting no longer works
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ipython
Version: 13
Hardware: All
OS: Linux
low
high
Target Milestone: ---
Assignee: Thomas Spura
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-12-16 23:18 UTC by Lane
Modified: 2013-01-10 10:48 UTC (History)
6 users (show)

Fixed In Version: ipython-0.10.2-1.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-04-20 03:25:31 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Lane 2010-12-16 23:18:46 UTC
Description of problem:
I have for years used 'ipython -pylab' to interactively plot using matplotlib. Recently, however, interactive plotting no longer works. I cannot say the exact combination of ipython/matplotlib versions of when this broke, but it was in the last three or four months.

Version-Release number of selected component (if applicable):

$ rpm -q ipython
ipython-0.10.1-3.fc13.noarch
$ rpm -q python-matplotlib
python-matplotlib-0.99.1.2-4.fc13.x86_64

This combination of ipython and matlabplot is the latest available on F13 and it shows the problem. I am not sure about any other versions or combinations of versions.

How reproducible:

$ ipython -pylab

  In [1]: import pylab

  In [2]: pylab.plot([0,1],[1,0])
  Out[2]: [<matplotlib.lines.Line2D object at 0x255d390>]

Historically after running this command a matplotlib plot would have popped up, but it no longer does. So if you then run pylab.show(), it will pop up, but it blocks and is not interactive as before. Then when you close the plot that popped up, it continues to block. It is hung. After waiting a long time, I hit Ctrl-C, and I get the following message:

In [3]: pylab.show()
^CERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (332, 0))

---------------------------------------------------------------------------
KeyboardInterrupt                         Traceback (most recent call last)

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

/usr/lib64/python2.6/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: 

In [4]:

Comment 1 Lane 2010-12-16 23:24:26 UTC
I reverted to ipython-0.10-2.fc13.noarch and it works as it used to.

Comment 2 Thomas Spura 2011-01-16 22:18:55 UTC
This is the same like #649281.

There is a solution proposed upstream at:
https://github.com/ipython/ipython/pull/237

Will test the fix this week and do an update soon...

Comment 3 Jeff 2011-04-06 14:04:44 UTC
(In reply to comment #1)
> I reverted to ipython-0.10-2.fc13.noarch and it works as it used to.

Reverting to ipython-0.10-8.fc14.noarch and python-matplotlib-1.0.0-2.fc14.i686 in Fedora 14 also restores non-blocking plots.

Comment 4 Fedora Update System 2011-04-09 11:47:45 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 5 Fedora Update System 2011-04-09 11:47:58 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 6 Fedora Update System 2011-04-09 11:48:11 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 7 Fedora Update System 2011-04-09 21:18:59 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 8 Fedora Update System 2011-04-20 03:25:19 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 9 Fedora Update System 2011-04-20 19:19:32 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 10 Fedora Update System 2011-04-20 19:21:34 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.

Comment 11 Lane 2011-04-20 20:32:30 UTC
I finally got around to trying this out and the update does solve the problem identified in this bug. THanks.

Comment 12 Lane 2011-04-28 16:33:10 UTC
I tried the update and can verify that it solves my problem. The Android plugin is now working.


Note You need to log in before you can comment on or make changes to this bug.