1

I am using spyder as my IDE for Python.

I notice that every time I

  1. Select the code snippet
  2. Press "F9"

as follows:

enter image description here

I would have my console as follows:

enter image description here

With all those ..., I have to press "Enter Key" for many times to finish the execution.

I am really tired of doing so.

How may I make it automatically finish everything?

Sibbs Gambling
  • 19,274
  • 42
  • 103
  • 174
  • (*Spyder dev here*) What is your version? I think I fixed this bug a long time ago. Besides, in 2.2.3, we added the equivalent of Matlab cells (using the `#%%` separator), which will help you to run portions of a file more easily. – Carlos Cordoba Aug 28 '13 at 13:51
  • Another things is that this kind of operation runs much more smoothly if you use **IPython** instead of our provided Python console. – Carlos Cordoba Aug 28 '13 at 13:55
  • @CarlosCordoba 2.1.11 Many have recommended me spyder. Then as a newbie i just use it. IPython only has a command window right? I cannot view variables in IPython, right? – Sibbs Gambling Aug 29 '13 at 02:49
  • Ok, I can write my answer now – Carlos Cordoba Aug 30 '13 at 01:33

1 Answers1

1

Please update to Spyder 2.2.3, it's much more stable and it'll fix your problem. For that just go to our Downloads page and use our Windows installer.

Notes:

  1. Use #%% to separate file sections for evaluation (a la Matlab cells), instead of selecting every time the portion you want to send to the console.

  2. Please install IPython to ease this task. IPython comes now not only with a command line interface but also with a graphical one which we embedded in Spyder to take advantage of its multiple facilities (like multine inputs) which in this case will let you evaluate file portions much more easily.

Carlos Cordoba
  • 33,273
  • 10
  • 95
  • 124
  • Thanks! But as a newbie I am a bit confused with all these software. THe spyder that I am currently using is installed together with python(x,y). I don;t reanlly understand what is the difference. See here http://stackoverflow.com/questions/18506195/directly-open-spyder-or-open-it-through-pythonxy/18512987 – Sibbs Gambling Aug 30 '13 at 01:44
  • So in my case, should I uninstall my current spyder and pythonxy, and reinstall the new spyder? Also, for ipython, I am not sure I am suing the right one. Because my ipython interface is just a console, very user-unfriendly – Sibbs Gambling Aug 30 '13 at 01:45
  • 1
    I understand. The easiest way for you to update Spyder (and have IPython too) is this: a) Uninstall PythonXY; b) Download and install the latest PythonXY and c) Download spyder-2.2.3.win32.exe from our web page, run and install it. – Carlos Cordoba Aug 30 '13 at 02:35
  • Thanks!!! http://stackoverflow.com/questions/18506195/directly-open-spyder-or-open-it-through-pythonxy – Sibbs Gambling Sep 03 '13 at 02:00