質問

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?

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top