[portland] Executing Python Code Within Emacs

mark gross markgross at thegnar.org
Fri Mar 14 02:26:24 CET 2008


On Thu, Mar 13, 2008 at 03:22:36PM -0700, Rich Shepard wrote:
>    I just upgraded python-mode.el so the 'execute buffer' command (C-c C-c)
> works. However, while ipython is called and the script runs, the output is
> filled with ANSI escape sequences; for example:
> 
> 2m/data1/eikos/<ipython console>m
> 
> 1mNameErrorm: name 'row' is not defined
> 1m------------------------------------------------------------m
> 1mIndentationErrorm1m:m unindent does not match any outer indentation level
> (<ipython console>, line 5)
> 
> 1m---------------------------------------------------------------------------m
> 1mexceptions.NameErrorm                                 Traceback (most
> recent call last)
> 
> 2m/data1/eikos/<ipython console>m
> 
>    It actually looks worse than this, but pine is correctly translating some
> of the codes.
> 
>    How do I clean this up? Or, where do I ask for help with this issue?

I'm just guessing but :

Try running dos2unix on the file containing the implementation of
1mNameErrorm?  It looks like it may be a file from a Windows computer
that was copied over / installed on a Linux box.

--mgross

> 
> Rich
> 
> -- 
> Richard B. Shepard, Ph.D.               |  Integrity            Credibility
> Applied Ecosystem Services, Inc.        |            Innovation
> <http://www.appl-ecosys.com>     Voice: 503-667-4517      Fax: 503-667-8863
> _______________________________________________
> Portland mailing list
> Portland at python.org
> http://mail.python.org/mailman/listinfo/portland
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.python.org/pipermail/portland/attachments/20080313/255a79dc/attachment.pgp 


More information about the Portland mailing list