{"id":1071,"date":"2013-11-04T05:39:00","date_gmt":"2013-11-03T17:39:00","guid":{"rendered":"http:\/\/p-s.co.nz\/wordpress\/?p=1071"},"modified":"2013-11-04T05:39:00","modified_gmt":"2013-11-03T17:39:00","slug":"idle-py-file-association-annoyance-fixed","status":"publish","type":"post","link":"https:\/\/p-s.co.nz\/wordpress\/idle-py-file-association-annoyance-fixed\/","title":{"rendered":"IDLE py File Association Annoyance Fixed"},"content":{"rendered":"<p>I use eclipse + pydev for my Python development but I still like to use IDLE for simple tests, quickly banging out a simple script etc. So I want to be able to right click on a .py file and simply open it with IDLE. On Ubuntu this has not always been easy to achieve. Here is what worked on Ubuntu 13.10 (Saucy):<\/p>\n<p><code>gksudo gedit \/usr\/share\/applications\/idle.desktop<\/code><\/p>\n<p>Add a %f to the end of the line, and then save it. It should look like:<\/p>\n<p><code>Exec=\/usr\/bin\/idle -n %f<\/code><\/p>\n<p>Then do the usual to associate .py files with IDLE so they automatically open when you double click them &#8211; namely, right click on any .py file, select Properties, then Open With, select IDLE and click on Set as default. Also see <a href=\"http:\/\/askubuntu.com\/questions\/78541\/how-do-i-set-idle-as-the-default-editor-for-python-scripts\" target=\"_blank\">How do I set IDLE as the default editor for Python scripts?<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I use eclipse + pydev for my Python development but I still like to use IDLE for simple tests, quickly banging out a simple script etc. So I want to be able to right click on a .py file and &hellip; <a href=\"https:\/\/p-s.co.nz\/wordpress\/idle-py-file-association-annoyance-fixed\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,6],"tags":[],"class_list":["post-1071","post","type-post","status-publish","format-standard","hentry","category-python","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/posts\/1071"}],"collection":[{"href":"https:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/comments?post=1071"}],"version-history":[{"count":3,"href":"https:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/posts\/1071\/revisions"}],"predecessor-version":[{"id":1074,"href":"https:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/posts\/1071\/revisions\/1074"}],"wp:attachment":[{"href":"https:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/media?parent=1071"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/categories?post=1071"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/tags?post=1071"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}