We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
开发者_JS百科Closed 5 years ago.
Improve this questionSo I am really annoyed by using IDLE. I need an IDE or simply a shell that can take a .py file and run it immediately, showing me the results.
I've configured Notepad++ to run python console, and I have to add "raw_input()" at the end of every file so it doesn't disappear. Problem is, if there is a syntax error, it won't show me the error, it won't go to raw_input. So I am forced to use IDLE.
I tried running DreamPie shell with notepad++ but it doesn't work that way. Neither does the IDLE shell.
How can I write Python code and then instantly see the results without using IDLE's editor?
EDIT: I found a plugin called PyNPP it allows you to run the 'interactive shell' for Python immediately, using a shortcut like F6 in Notepad++. This seems to work great! Sublime 2 seems like a nice editor too, but I couldn't get it to run shell.
I would recommend pydev for eclipse. You can download it from the pydev website
What kinds of scripts are you running? If you are doing just pure text output scripts without needing a GUI event loop, check out Sublime. It's a gorgeous editor, and extensible in python if you want to make addins for it. iPython is a great shell which has autocomplete (sort of).
http://www.sublimetext.com/
Komodo Edit is pretty good, has decent autocomplete and its free, it also doesn't suffer from the GUI event loop limitation that Sublime has (though it is also a larger application, and not nearly as pretty).
http://www.activestate.com/komodo-edit
Eclipse, as mentioned earlier, is a great IDE though it is huge - I personally prefer sublime as my goto editor.
I would recommend Emacs with python-mode.el.
This will be harder to get into initially, since Emacs has a bit of a learning curve. However, once you have it down, it has all the advantages of an interactive shell and an IDE. When you're working normally, it's like any other text editor/IDE, where you have syntax highlighting, code completion, and other nice features. When you want to be in a shell, control-c ! will pop one open, and you can paste code in, or highlight your code and send it to the shell.
That being said, Emacs isn't for everyone. Still, a lot of people like it once they learn it. Definitely worth giving a try.
IPython is a souped up version of the standard python shell. It does auto completion and syntax highlighting along with automatically providing help docs for various functions.
I tried several Sublimetext3, Vim etc. but there was always one or more issues. Then I came across Zeus http://www.zeusedit.com/index.html
Briljant simple and running straight out of the box if you set the link to the compiler. I am now on the 45 days trial period but I am going to buy it.
精彩评论