[Tutor] Python equivalent to Matlab keyboard function
Kent Johnson
kent37 at tds.net
Fri Dec 4 17:57:45 CET 2009
On Fri, Dec 4, 2009 at 11:10 AM, Tim Goddard <timgoddardsemail at gmail.com> wrote:
> This is probably an easy one.
>
> When I was writing Matlab m-files, I really enjoyed the ability to
> stop the code to check how values were being stored or to 'step' into
> a function with the keyboard function.
>
> I have numerous 'environments'? as part of Python (x,y) including
> IDLE, Eclipse, and Spyder.
>
> I know that Spyder is very Matlab esque, but I prefer to use Eclipse
> as my programs up to this point have not been mathematics based.
>
> To do what I want In Spyder I paste a portion of my program and click
> the run icon. The interactive console then allows me to proceed
> through the next lines manually so that I can get real-time feedback.
> This is really helpful in understanding what I'm doing with OOP as I'm
> learning from a book and would like to follow along just like it is
> written which is usually a few lines at a time.
>
> Is there a way in Eclipse to do the same thing so I am not switching
> between environments? When I try the same thing it just terminates at
> the end of the code.
I'm not really sure what you are doing in Spyder but you should be
able to do what you want in PyDev using the debugger or the
interactive console.
Kent
More information about the Tutor
mailing list