{"action":"created","issue":{"url":"https://api.github.com/repos/spyder-ide/spyder/issues/1831","labels_url":"https://api.github.com/repos/spyder-ide/spyder/issues/1831/labels{/name}","comments_url":"https://api.github.com/repos/spyder-ide/spyder/issues/1831/comments","events_url":"https://api.github.com/repos/spyder-ide/spyder/issues/1831/events","html_url":"https://github.com/spyder-ide/spyder/issues/1831","id":57982382,"number":1831,"title":"Need to press run twice with matplotlib in spyder","user":{"login":"spyder-issues-migrator","id":11021581,"avatar_url":"https://avatars.githubusercontent.com/u/11021581?v=3","gravatar_id":"","url":"https://api.github.com/users/spyder-issues-migrator","html_url":"https://github.com/spyder-issues-migrator","followers_url":"https://api.github.com/users/spyder-issues-migrator/followers","following_url":"https://api.github.com/users/spyder-issues-migrator/following{/other_user}","gists_url":"https://api.github.com/users/spyder-issues-migrator/gists{/gist_id}","starred_url":"https://api.github.com/users/spyder-issues-migrator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spyder-issues-migrator/subscriptions","organizations_url":"https://api.github.com/users/spyder-issues-migrator/orgs","repos_url":"https://api.github.com/users/spyder-issues-migrator/repos","events_url":"https://api.github.com/users/spyder-issues-migrator/events{/privacy}","received_events_url":"https://api.github.com/users/spyder-issues-migrator/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/6%E2%80%9310%20stars","name":"6–10 stars","color":"fef2c0"},{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/Python-Console","name":"Python-Console","color":"d4c5f9"},{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/Windows","name":"Windows","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/spyder-ide/spyder/milestones/5","html_url":"https://github.com/spyder-ide/spyder/milestones/v2.4","labels_url":"https://api.github.com/repos/spyder-ide/spyder/milestones/5/labels","id":982077,"number":5,"title":"v2.4","description":null,"creator":{"login":"spyder-issues-migrator","id":11021581,"avatar_url":"https://avatars.githubusercontent.com/u/11021581?v=3","gravatar_id":"","url":"https://api.github.com/users/spyder-issues-migrator","html_url":"https://github.com/spyder-issues-migrator","followers_url":"https://api.github.com/users/spyder-issues-migrator/followers","following_url":"https://api.github.com/users/spyder-issues-migrator/following{/other_user}","gists_url":"https://api.github.com/users/spyder-issues-migrator/gists{/gist_id}","starred_url":"https://api.github.com/users/spyder-issues-migrator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spyder-issues-migrator/subscriptions","organizations_url":"https://api.github.com/users/spyder-issues-migrator/orgs","repos_url":"https://api.github.com/users/spyder-issues-migrator/repos","events_url":"https://api.github.com/users/spyder-issues-migrator/events{/privacy}","received_events_url":"https://api.github.com/users/spyder-issues-migrator/received_events","type":"User","site_admin":false},"open_issues":247,"closed_issues":20,"state":"open","created_at":"2015-02-16T23:17:23Z","updated_at":"2015-03-18T04:43:51Z","due_on":null,"closed_at":null},"comments":59,"created_at":"2015-02-17T21:09:39Z","updated_at":"2015-03-18T19:29:55Z","closed_at":null,"body":"_From [markfran...@gmail.com](https://code.google.com/u/107945454135484576573/) on 2014-05-26T19:10:46Z_\n\nSpyder Version:  2.3.0beta2\r\nPython Version:  3.3.5\r\nQt Version    :  4.8.4, PyQt4 (API v2) 4.9.6 on Windows\r\npyflakes >=0.6.0:  None (OK)\r\npep8 >=0.6      :  None (NOK)\r\nIPython >=0.13  :  2.0.0 (OK)\r\nrope >=0.9.2    :  0.9.4 (OK)\r\nsphinx >=0.6.6  :  1.2.2 (OK)\r\nmatplotlib >=1.0:  1.3.1 (OK)\r\nsympy >=0.7.0   :  0.7.5 (OK)\r\npylint >=0.25   :  1.1.0 (OK) \n\nWhat steps will reproduce the problem?\n\n 1.  Open a script with a matplotlib figure.  For example one from the matplotlib site. http://matplotlib.org/mpl_examples/pylab_examples/figure_title.py 2. Press run or F5.  It runs normally.\r\n3. Press run or F5 a second time and the script doesn't run\r\n4. Press run or F5 a third time then the script runs \n\nWhat is the expected output? What do you see instead?\n\n When you try to run a script with matplotlib you press run and it works normally the first time.  Press run again and the script doesn't run.  You have to hit run a second time in order for the script to run\r\n\r\nSpyder is in \"Execute in current python or ipython interpreter\" mode\r\n\r\nIn the console it looks like this (i removed the file paths to make it shorter).  F5 puts the runfile in.  The second time you try to run it, when you click F5 or the green run arrow twice you runfile goes into the console twice before it runs.\r\n\r\n\">>> runfile('C:/.../figure_title.py', wdir=r'C:/...')\r\n\\>>> runfile('C:/.../figure_title.py', wdir=r'C:/...')\r\nrunfile('C:/.../figure_title.py', wdir=r'C:/...')\r\n\\>>> \" \n\nPlease provide any additional information below\n\n. I thought it was a problem with my own script, but the problem repeats even with code from the matplotlib website.\r\n\r\nI only have this problem when I have a script with matplotlib.  For example, when I run a simple script like below I can run it over and over no problem.  I never have to press F5 twice.\r\n\r\nx = int(input(\"enter an number: \"))\r\n\r\nif x \\< 0:\r\n    x = 0\r\n    print('Negative')\r\nelif x > 0:\r\n    print('Positive')\r\nelif x == 0:\r\n    print('Zero')\n\n_Original issue: http://code.google.com/p/spyderlib/issues/detail?id=1831_"},"comment":{"url":"https://api.github.com/repos/spyder-ide/spyder/issues/comments/83131153","html_url":"https://github.com/spyder-ide/spyder/issues/1831#issuecomment-83131153","issue_url":"https://api.github.com/repos/spyder-ide/spyder/issues/1831","id":83131153,"user":{"login":"divenex","id":9269490,"avatar_url":"https://avatars.githubusercontent.com/u/9269490?v=3","gravatar_id":"","url":"https://api.github.com/users/divenex","html_url":"https://github.com/divenex","followers_url":"https://api.github.com/users/divenex/followers","following_url":"https://api.github.com/users/divenex/following{/other_user}","gists_url":"https://api.github.com/users/divenex/gists{/gist_id}","starred_url":"https://api.github.com/users/divenex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/divenex/subscriptions","organizations_url":"https://api.github.com/users/divenex/orgs","repos_url":"https://api.github.com/users/divenex/repos","events_url":"https://api.github.com/users/divenex/events{/privacy}","received_events_url":"https://api.github.com/users/divenex/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T19:29:55Z","updated_at":"2015-03-18T19:29:55Z","body":"@ccordoba12 thanks for trying."}}