Re: [Tutor] Output not legible when debugging with ipdb

2013-11-30 Thread Peter Zorn
PyReadline is installed with the Anaconda distribution, and Powershell displays colored IPython output, but not when I use ipdb for whatever reason. I figured out that from IPython.core.debugger import Tracer; debug_here = Tracer() debug_here() seems to yield the desired result: a debugger wi

Re: [Tutor] Output not legible when debugging with ipdb

2013-11-26 Thread eryksun
On Tue, Nov 26, 2013 at 7:17 PM, Walter Prins wrote: > Actually now that I write this -- I suddenly vaguely remembering installing > PyReadline back when I was setting up IPython in order to get colour and a > couple of other things working properly... so presumably it does the ANSI > interpretati

Re: [Tutor] Output not legible when debugging with ipdb

2013-11-26 Thread Walter Prins
Hi, Thanks for the highly educational response. On 26 November 2013 23:24, eryksun wrote: > On Tue, Nov 26, 2013 at 4:28 PM, Walter Prins wrote: > > > > honest. Regarding Powershell (vs for example cmd.exe): The (slightly) > > perplexing/irritating/annoying thing is that the older cmd.exe she

Re: [Tutor] Output not legible when debugging with ipdb

2013-11-26 Thread eryksun
On Tue, Nov 26, 2013 at 4:28 PM, Walter Prins wrote: > > honest. Regarding Powershell (vs for example cmd.exe): The (slightly) > perplexing/irritating/annoying thing is that the older cmd.exe shell, which > uses a standard old-school NT console window, does support ANSI escape > sequences (but is

Re: [Tutor] Output not legible when debugging with ipdb

2013-11-26 Thread Walter Prins
Hi, On 26 November 2013 19:01, eryksun wrote: > On Tue, Nov 26, 2013 at 11:50 AM, Walter Prins wrote: > > All those arrows and codes you see are called "ANSI escape codes" or > "ANSI > > control codes". It's a way to control/signal text colour and formatting > > inline for text terminals. I d

Re: [Tutor] Output not legible when debugging with ipdb

2013-11-26 Thread eryksun
On Tue, Nov 26, 2013 at 11:50 AM, Walter Prins wrote: > All those arrows and codes you see are called "ANSI escape codes" or "ANSI > control codes". It's a way to control/signal text colour and formatting > inline for text terminals. I don't know whether or not it does, but if > Windows Powershe

Re: [Tutor] Output not legible when debugging with ipdb

2013-11-26 Thread Walter Prins
Hi, On 26 November 2013 14:22, Peter Zorn wrote: > Hi everyone - > > I'm fairly new to Python and I'm working through this ( > http://quant-econ.net/) tutorial to learn the language. > > I've encountered a problem with the ipdb debugger and I > wonder if anyone can help. When I run this cod

Re: [Tutor] Output not legible when debugging with ipdb

2013-11-26 Thread Alan Gauld
On 26/11/13 14:22, Peter Zorn wrote: I've encountered a problem with the ipdb debugger and I wonder if anyone can help. When I run this code ( http://quant-econ.net/ipython.html#setting-a-break-point) and include the "import ipdb; ipdb.set_trace()" command line, the ipdb debugger starts but its