From: Noam Postavsky <npostavs@gmail.com>
To: Jaan Altosaar <altosaar@princeton.edu>
Cc: 32042@debbugs.gnu.org
Subject: bug#32042: 26.1; python.el with ipython prompt leads to superfluous interactive shell output
Date: Mon, 02 Jul 2018 16:32:18 -0400 [thread overview]
Message-ID: <87zhz9l6p9.fsf@gmail.com> (raw)
In-Reply-To: <CADzm6z+f4xGAiQGD05HT6TbHGhLOUO0L0_DuRFUEvPojGtc7GA@mail.gmail.com> (Jaan Altosaar's message of "Mon, 2 Jul 2018 16:13:14 -0400")
merge 32042 25753
quit
Jaan Altosaar <altosaar@princeton.edu> writes:
> File "<ipython-input-1-57ce0cd600e5>", line 1, in <module>
> import codecs, os;__pyfile =
> codecs.open('''/var/folders/qr/s_h2rhqj6kdg8qrj0zw2scnw0000gn/T/pyLbk6Vh''',
> encoding='''utf-8''');__code =
> __pyfile.read().encode('''utf-8''');__pyfile.close();os.remove('''/var/folders/qr/s_h2rhqj6kdg8qrj0zw2scnw0000gn/T/pyLbk6Vh''');exec(compile(__code,
> '''/Users/jaan/tmp/test.py''', 'exec'));
> Is there any way to clean up the output, especially the parts involving
> `codecs.open('''/var/folders/qr/s_h2rhqj6kdg8qrj0zw2scnw0000gn/T/pyLbk6Vh'''`?
Try installing gnureadline, as described in etc/PROBLEMS:
*** In Inferior Python mode, input is echoed and native completion doesn't work.
<https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25753>
This happens when python uses a libedit based readline module, which
is the default on macOS. This can be worked around by installing a
GNU readline based module instead, for example, using setuptools
sudo easy_install gnureadline
And then rename the system's readline so that it won't be loaded:
cd /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload
mv readline.so readline.so.bak
See <https://pypi.python.org/pypi/gnureadline> for more details on
installation.
next prev parent reply other threads:[~2018-07-02 20:32 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-02 20:13 bug#32042: 26.1; python.el with ipython prompt leads to superfluous interactive shell output Jaan Altosaar
2018-07-02 20:32 ` Noam Postavsky [this message]
2018-07-02 21:18 ` Jaan Altosaar
2018-07-03 0:45 ` Noam Postavsky
2018-07-09 12:59 ` Jaan Altosaar
2018-07-09 19:55 ` Noam Postavsky
[not found] ` <mailman.3332.1531166168.1292.bug-gnu-emacs@gnu.org>
2018-07-10 22:09 ` Jaan Altosaar
2018-07-10 22:36 ` Noam Postavsky
[not found] ` <mailman.3400.1531262228.1292.bug-gnu-emacs@gnu.org>
2018-07-10 22:51 ` Jaan Altosaar
2018-07-11 0:32 ` Noam Postavsky
2021-09-05 7:42 ` Lars Ingebrigtsen
2018-07-10 22:14 ` Jaan Altosaar
[not found] ` <mailman.2978.1530578768.1292.bug-gnu-emacs@gnu.org>
2018-07-06 19:21 ` jaan.altosaar
2018-07-07 14:43 ` Noam Postavsky
2018-07-07 16:42 ` Glenn Morris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zhz9l6p9.fsf@gmail.com \
--to=npostavs@gmail.com \
--cc=32042@debbugs.gnu.org \
--cc=altosaar@princeton.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.