Reputation: 1584
I have gone through a few tutorials regarding console Python applications. I am using vim and using the Windows command prompt to run my same applications. I am moving towards GUI creation in wxPython. I am essentially trying to recreate the google finance chart, but with data from some temperature sensors.
However, whenever I run the program from the command line, the window of my sample app flashes and goes away immediately. When I ran it through IDLE, I saw that there was an error in my code. Is there a way to see errors when I run it from the command line, because I am much more comfortable with vim?
Thanks in advance!
Upvotes: 3
Views: 304
Reputation: 546
You can run the code, using commands in cmd prompt "Python.exe filename.py", as it shouldn't exit the cmd prompt upon the execution of the code.
Or you can write the program in vim and run it through IDLE.
Upvotes: 1
Reputation: 1
Telling the program to request input from the console at the end via raw_input() should cause it to pause before closing the console.
Upvotes: 0