Running Python in Atom.io in Windows
I already hate Python, but their “IDE” makes it worse. Â Fortunately, Atom.io can fix the IDE problem.
Atom.io is a Github product that whips the IDLE Python’s ass.  It’s not actually an IDE, it’s  a text editor, but it’s a text editor on steroids.
I stumbled upon a plugin for Atom to run various languages right in the window, including Python. Â The problem is that it doesn’t work right out of the box in Windows. Â Fixing this is easy:
- Go to File – Settings (you can also press CTRL+,)
- Select Install
- In the search box, type “script” and it should come up after a few seconds
- Click install
Once it is installed (which should take less than a minute on a modern Internet connection), you will need to update the startup script to fix the path. Â To do that:
- Â Go to File – Open Your Init Script
- Add the following line
process.env.path = [“C:\Python27\ArcGIS10.2”,process.env.PATH].join(“;”)
NOTE: I’m using the ArcGIS-bundled Python – you may need to fix that path!
Once the init script is updated, close and re-open Atom, and you should be able to select Packages – Script – Run Script (or press CTRL+SHIFT+B) to run a Python script.
/A
https://twitter.com/okiAndrew/status/605718135501692928
https://twitter.com/okiAndrew/status/602277370859487232
All other languages tired of Python's shit. Any comments @okiAndrew ☺ http://t.co/THridzb3DG via @wordpressdotcom
— Krishnan V @matungawalla@transportation.social (@matungawalla) March 20, 2015
(my hate for Python is well-known!)
You must be logged in to post a comment.