IDE GUI Python 3.5.1 for Mac OS X 10.11
Any recomendation for a good and easy to use Python 3.5.1 IDE GUI for Mac OS X? Thanks
@omz I've heard that TextMate has gone downhill since the developer abandoned it and open-sourced it.
Pycharm requires java... Atom looks interesting @Webmaster4o I installed the scripts package to run things, and using the same exact file in the same location as elsewhere using atom I get an import error... No module named "requests" ... strange.
I personally use Sublime Text 3 .... can even set up a custom build system to quickly build an iOS app from Xcode command line tools and launch into simulator without even going into xCode.
@Tizzy Script behaves kind of funny as far as which python install it uses (system or local). You can fix this by adding a
#!/usr/local/bin/pythonto the beginning of the script. (on mac, idk about windows, the path might be different.) The other way to fix this is to start atom from the command-line by typing "atom"
@Webmaster4o thanks. starting it from the command line seems to be the simplest workaround.
@Tizzy PyCharm "requires" Java, but it comes with a JRE built-in as a framework. Besides, it's not like Java is such a bad thing that it justifies not using an IDE that requires it.
When I'm not working on any huge projects, I use TextWrangler (the free version of BBEdit) as my general-purpose text editor. It works quite well for me. I did install TextMate, but it doesn't have any huge features that TextWrangler doesn't, so I won't be switching anytime soon. Though the whole bundle system seems a lot more powerful and accessible than TextWrangler's language module support. (TextMate also installs a QuickLook handler that does syntax highlighting in the spacebar previews for files. Which is neat, but it also cuts off files after some number of characters, which is extremely frustrating because I then have to actually open the file.)
@dgelessus Atom is written in CoffeeScript (which compiles to JS). This improves the language syntax considerably. The whole thing is built on top of Node.js and the Electron framework, which, to my understanding, adds a lot of functionality to JS and makes stuff more stable. Atom is not something that could ever run in a web browser. It's much more powerful than that.
NaN, but actually produces an error and stops the program from running.
@Webmaster4o a more resilient Python "shebang" line for Macs and other unix/linux boxes would be:
That formulation will use
envfind your system's default Python regardless of linux distro or exact path. For instance I use homebrew to
brew install python3 python pypy3 pypyon my Mac and then I can switch between four different Python implementations just by changing the final word of my shebang line.
brew cask install anacondais however probably the coolest Python thing to do on the Mac these daze.
@ccc Just FYI, that shebang will also work just fine on Windows. In fact the Windows version of Python is very liberal regarding shebangs. Because they are not a feature of Windows, Python comes with a "Python Launcher" (
py.exe) which is assigned as the default program for
.pyfiles. When you
starta Python script, the Python launcher checks for a shebang and then basically looks for the word
pythonoptionally followed by a version number to figure out which Python version should be used. That's why some Windows people write
#!pythonat the top of their scripts - it works for them. On Unixes it doesn't, because the shebang needs to be an absolute path.
Long story short, use
#!/usr/bin/env pythonand you'll be fine.
If I'm not too late to the game, I have been using Interactive Editor for Python as my main "IDE" for coding Python on my Mac (it works on all platforms). It works very similarly to Pythonista: editor; file browser; interactive console; and other really nice tools. I particularly like the workspace tool, which showed you all of your currently instanciated stuff.