After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 620705 - help() in ipython console causes problems when accerciser is opened from a terminal
help() in ipython console causes problems when accerciser is opened from a te...
Status: RESOLVED FIXED
Product: accerciser
Classification: Applications
Component: plugins
1.10.x
Other Linux
: Normal normal
: ---
Assigned To: Accerciser Developers
Accerciser Developers
Depends on:
Blocks:
 
 
Reported: 2010-06-06 01:28 UTC by Samuel Thibault
Modified: 2011-07-02 01:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Typing help() does not hang Accerciser anymore (1.71 KB, patch)
2011-06-27 22:49 UTC, Aline Bessa
none Details | Review
fixed a typo error in proposed patch (1.41 KB, patch)
2011-07-01 21:29 UTC, Javier Hernández
none Details | Review

Description Samuel Thibault 2010-06-06 01:28:51 UTC
From http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=575393 (confirmed in 1.10.1):

When entering "help()" to the ipython prompt, the help output is
directed to accerciser's controlling tty instead of being displayed in
the ipython window.
Hitting "enter" in the tty causes "help>" and then the ipython prompt to
get displayed in the ipython window.

Additionally, when accerciser was launched in the background, it get
stopped by this operation.

OTOH, asking to display any python value does result in the value being
printed in the ipython window.
Comment 1 Aline Bessa 2011-06-21 22:41:47 UTC
Bug confirmed.
Comment 2 Aline Bessa 2011-06-27 22:49:58 UTC
Created attachment 190818 [details] [review]
Typing help() does not hang Accerciser anymore

This bug happens when accerciser is launched from a terminal. It seems that doing this makes help() want to take input from the gnome-terminal window. Setting sys.stdin explicitly, according to intuitions given by IPython's ipython_view.py, solved it.

With or without this patch, though, typing help() in Accerciser when it's launched via either double-click or alt+f2 doesn't behave properly. The 'help >' prompt is opened and, immediately after that, closed. 

According to my attempts, it doesn't seem so easy to solve.
Comment 3 Javier Hernández 2011-07-01 21:29:56 UTC
Created attachment 191121 [details] [review]
fixed a typo error in proposed patch

I can reproduce it too.

I reviewed your patch and is ok, it solves the hang for me. I fixed a typo error that it had, so I added a new attachment.

Thanks again Aline!
Comment 4 Aline Bessa 2011-07-01 21:36:58 UTC
Thanks, Javi! Sorry about the typo.
Comment 5 Javier Hernández 2011-07-02 01:29:01 UTC
commited 21f711c56c53640c1ac6ac3dcca9d4a94b38ce45