This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: python-mode patch for ipython support
Type: Stage:
Components: Demos and Tools Versions:
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: barry Nosy List: aschmolck, barry, skip.montanaro
Priority: normal Keywords: patch

Created on 2002-06-30 22:28 by aschmolck, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
PatchAndIpython-el.tgz aschmolck, 2002-06-30 22:28 archive with patch and ipthon.el to show why of patch
Messages (2)
msg40453 - (view) Author: Alexander Schmolck (aschmolck) Date: 2002-06-30 22:28
This patch makes the prompt and traceback recognition
mechanisms a bit more flexible to allow easy adaptation
for ipython (in lieu of the normal python shell). The
seperate file ipython.el (which I assume will end up in
the ipython distribution) then enables
py-execute-region, py-up-exception etc. to work just as
well for ipython (which means ipython works just as
well under python mode as the standard python shell). I
also added something to ipython.el to convert ipython
session bits to something that looks like normal
interactive session bits. This, together with ipython's
ability to directly execute such strings (by
auto-removing leading '>>>'s) should make for very
convinient doctest development (I had orginally planned
to patch python-mode to incorporate such functionality
because I found the manual reediting a bit tiresome).

Slightly off-topic, I also have a feature request:
executing a whole file ends up creating a temporary
file which is instead executed. I think it would be
much nicer if the actual file itself where executed
with execfile, because otherwise pdb ends up pointing
to the "wrong" (i.e. the temporary) buffer. It is
really easy to forget about this and edit this
temporary file during a debugging session and as a
consequence inadvertenly loose changes. This situation
crops up quite often, if one uses ipython's really
nifty feature to toggle pdb activation on exceptions
(or hacks up something equivalent for python), which is
an extremely efficient way to quickly debug and test
one's program. I would have added a patch, but some
restructuring seemed necessary, and it wasn't
immediately clear to me in which way this should be done.

alex
msg40454 - (view) Author: Skip Montanaro (skip.montanaro) * (Python triager) Date: 2003-08-05 03:27
Logged In: YES 
user_id=44345

migrated to new python-mode project. follow it here:

https://sourceforge.net/tracker/
index.php?func=detail&aid=783254&group_id=86916&ati
d=581351
History
Date User Action Args
2022-04-10 16:05:28adminsetgithub: 36831
2002-06-30 22:28:38aschmolckcreate