{"id":575,"date":"2012-03-22T10:33:38","date_gmt":"2012-03-22T17:33:38","guid":{"rendered":"http:\/\/www.partofthething.com\/thoughts\/?p=575"},"modified":"2012-03-22T10:33:38","modified_gmt":"2012-03-22T17:33:38","slug":"how-to-fix-ctrl-c-closes-ipython-within-console2","status":"publish","type":"post","link":"https:\/\/partofthething.com\/thoughts\/how-to-fix-ctrl-c-closes-ipython-within-console2\/","title":{"rendered":"how to fix: ctrl-c closes ipython within console2"},"content":{"rendered":"<p>Just FYI, I was having a problem with ipython 0.12 running within Console, where pressing Ctrl-C to cancel an operation in a Python would actually just close the whole ipython window! It was horrible, since before I reinstalled everything it wouldn&#8217;t do that. Anyway, there&#8217;s an <a href=\"http:\/\/mail.scipy.org\/pipermail\/ipython-dev\/2010-November\/006957.html\" target=\"_blank\">email chain talking about this here<\/a>, but it&#8217;s irrelevant to this particular problem, since I&#8217;m using mainline (non-dev repo) versions and don&#8217;t know what an ETS is.<\/p>\n<p>Thankfully, there&#8217;s a very simple solution (assuming you made my same mistake). Rather than setting the console tab to C:python27scriptsipython.exe, instead set it to C:python27python.exe C:python27scriptsipython-script.py and Ctrl+C will give a KeyboardInterrupt and leave you in ipython, just like the good old days!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just FYI, I was having a problem with ipython 0.12 running within Console, where pressing Ctrl-C to cancel an operation in a Python would actually just close the whole ipython window! It was horrible, since before I reinstalled everything it wouldn&#8217;t do that. Anyway, there&#8217;s an email chain talking about this here, but it&#8217;s irrelevant &hellip; <a href=\"https:\/\/partofthething.com\/thoughts\/how-to-fix-ctrl-c-closes-ipython-within-console2\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">how to fix: ctrl-c closes ipython within console2<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[3],"tags":[],"class_list":["post-575","post","type-post","status-publish","format-standard","hentry","category-computers"],"_links":{"self":[{"href":"https:\/\/partofthething.com\/thoughts\/wp-json\/wp\/v2\/posts\/575","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/partofthething.com\/thoughts\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/partofthething.com\/thoughts\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/partofthething.com\/thoughts\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/partofthething.com\/thoughts\/wp-json\/wp\/v2\/comments?post=575"}],"version-history":[{"count":0,"href":"https:\/\/partofthething.com\/thoughts\/wp-json\/wp\/v2\/posts\/575\/revisions"}],"wp:attachment":[{"href":"https:\/\/partofthething.com\/thoughts\/wp-json\/wp\/v2\/media?parent=575"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/partofthething.com\/thoughts\/wp-json\/wp\/v2\/categories?post=575"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/partofthething.com\/thoughts\/wp-json\/wp\/v2\/tags?post=575"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}