{"action":"created","issue":{"url":"https://api.github.com/repos/spyder-ide/spyder/issues/2380","labels_url":"https://api.github.com/repos/spyder-ide/spyder/issues/2380/labels{/name}","comments_url":"https://api.github.com/repos/spyder-ide/spyder/issues/2380/comments","events_url":"https://api.github.com/repos/spyder-ide/spyder/issues/2380/events","html_url":"https://github.com/spyder-ide/spyder/issues/2380","id":71922691,"number":2380,"title":"Are there commands that I can issue to restart a Python console from Spyder (I am using Spyder 2.3.4 on Ubuntu 14.04) ","user":{"login":"s0r2637","id":11282051,"avatar_url":"https://avatars.githubusercontent.com/u/11282051?v=3","gravatar_id":"","url":"https://api.github.com/users/s0r2637","html_url":"https://github.com/s0r2637","followers_url":"https://api.github.com/users/s0r2637/followers","following_url":"https://api.github.com/users/s0r2637/following{/other_user}","gists_url":"https://api.github.com/users/s0r2637/gists{/gist_id}","starred_url":"https://api.github.com/users/s0r2637/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s0r2637/subscriptions","organizations_url":"https://api.github.com/users/s0r2637/orgs","repos_url":"https://api.github.com/users/s0r2637/repos","events_url":"https://api.github.com/users/s0r2637/events{/privacy}","received_events_url":"https://api.github.com/users/s0r2637/received_events","type":"User","site_admin":false},"labels":[{"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/Settings","name":"Settings","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-29T16:29:26Z","updated_at":"2015-04-29T18:39:01Z","closed_at":"2015-04-29T18:10:39Z","body":"Hi,\r\n\r\nI want to, by default, restart the Python console whenever I run a Python script.  I want to do that in order clean the slate before running the code.  Currently I kill the current Python console and restart manually.  Is there a way I can implement the two actions successively through commands?  I appreciate your help in advance.\r\n\r\nSrini"},"comment":{"url":"https://api.github.com/repos/spyder-ide/spyder/issues/comments/97535518","html_url":"https://github.com/spyder-ide/spyder/issues/2380#issuecomment-97535518","issue_url":"https://api.github.com/repos/spyder-ide/spyder/issues/2380","id":97535518,"user":{"login":"s0r2637","id":11282051,"avatar_url":"https://avatars.githubusercontent.com/u/11282051?v=3","gravatar_id":"","url":"https://api.github.com/users/s0r2637","html_url":"https://github.com/s0r2637","followers_url":"https://api.github.com/users/s0r2637/followers","following_url":"https://api.github.com/users/s0r2637/following{/other_user}","gists_url":"https://api.github.com/users/s0r2637/gists{/gist_id}","starred_url":"https://api.github.com/users/s0r2637/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s0r2637/subscriptions","organizations_url":"https://api.github.com/users/s0r2637/orgs","repos_url":"https://api.github.com/users/s0r2637/repos","events_url":"https://api.github.com/users/s0r2637/events{/privacy}","received_events_url":"https://api.github.com/users/s0r2637/received_events","type":"User","site_admin":false},"created_at":"2015-04-29T18:39:01Z","updated_at":"2015-04-29T18:39:01Z","body":"Thanks.\n\nI see I can set  Python to run in a new console each time I issue F5.\nHowever, the scientific startup script does not run when a new Python\nconsole is run.  So I have to reload all the standard modules: scipy,\nnumpy, matplotlib, etc.\n\nI hope you understand what I am talking about.\n\nSrini\n\nOn Wed, Apr 29, 2015 at 1:10 PM, Joseph Martinot-Lagarde <\nnotifications@github.com> wrote:\n\n> F6 is for configuring the launch of your script. Here you can set the\n> script to run in a dedicated console, restarted each time you run with F5.\n> Given what you said it's exactly what you need.\n>\n> Also in spyder's setting you can set wich mode to use by default.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/spyder-ide/spyder/issues/2380#issuecomment-97526123>.\n>\n"}}