Slow execution when pressing F9

328 views
Skip to first unread message

Fernando Saldanha

unread,
Jul 9, 2013, 11:04:16 AM7/9/13
to spyd...@googlegroups.com
If I run my whole script file by clicking on the "Run file" icon the execution is quite fast. However, if I select a large portion of the file and then click on F9 all the commands scroll on the Console, which takes a long time. Is there a way to go faster when I do not want to execute the whole file?

Thanks.

Jed Ludlow

unread,
Jul 9, 2013, 11:10:16 AM7/9/13
to spyd...@googlegroups.com
On Tuesday, July 9, 2013 9:04:16 AM UTC-6, Fernando Saldanha wrote:
If I run my whole script file by clicking on the "Run file" icon the execution is quite fast. However, if I select a large portion of the file and then click on F9 all the commands scroll on the Console, which takes a long time. Is there a way to go faster when I do not want to execute the whole file?


Bom dia, Fernando. This is a known issue that has yet to be addressed [1]. Right now, Spyder is executing each individual line in the selection, one at a time, and waiting for the results rather than pasting the whole block of code at once. That's why it's a bit slow.

Carlos Córdoba

unread,
Jul 9, 2013, 12:32:00 PM7/9/13
to spyd...@googlegroups.com
Hi Fernando,

To avoid this issue you can also use the IPython Console. You can open
one from the "Interpreters" menu, with the option "Open an IPython console".

If you can see this option, you need to install the latest stable
release of IPython (0.13.2).

Cheers,
Carlos

El 09/07/13 10:04, Fernando Saldanha escribió:
> --
> You received this message because you are subscribed to the Google
> Groups "spyder" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to spyderlib+...@googlegroups.com.
> To post to this group, send email to spyd...@googlegroups.com.
> Visit this group at http://groups.google.com/group/spyderlib.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Fernando Saldanha

unread,
Jul 10, 2013, 10:21:03 AM7/10/13
to spyd...@googlegroups.com
Hello Carlos,

thanks for the info. My installation is WinPython 64-bit 3.3.2.1 on Windows 8. I opened iPythonQt and checked that the version is 0.13.2. It would be great to use IPython as the interpreter for Spyder (I had read on the web it was not yet available). But on my Interpreters menu there is no option "Open an IPython console". Maybe that would be available only for Python 2.x?

Carlos Córdoba

unread,
Jul 10, 2013, 10:36:19 AM7/10/13
to spyd...@googlegroups.com
Hi Fernando,

According to the WinPython package index for Python 3.3

http://code.google.com/p/winpython/wiki/PackageIndex_33

IPython 0.13.2 is distributed with it.


@Jed: do you know what can be happening?

Cheers,
Carlos

El 10/07/13 09:21, Fernando Saldanha escribió:

Fernando Saldanha

unread,
Jul 10, 2013, 10:41:47 AM7/10/13
to spyd...@googlegroups.com
Hello Carlos,

I just checked remotely on my other installation at work and the Interpreters menu also shows only "Open a Python Interpreter". When I click on it it opens a standard interpreter. 



--
You received this message because you are subscribed to a topic in the Google Groups "spyder" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/spyderlib/-wM3Jx3BDCk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to spyderlib+...@googlegroups.com.

Jed Ludlow

unread,
Jul 11, 2013, 6:33:46 PM7/11/13
to spyd...@googlegroups.com
On Wednesday, July 10, 2013 9:36:19 AM UTC-5, Carlos Córdoba wrote:
Hi Fernando,

According to the WinPython package index for Python 3.3

http://code.google.com/p/winpython/wiki/PackageIndex_33

IPython 0.13.2 is distributed with it.


WinPython 3.3.2.1 is shipping with Spyder version 2.3.0dev3, which would require that dev build of IPython 1.0 be installed have IPython be available from within Spyder. Full Spyser support for Python 3.3 won't come until Spyder 2.3 is fully released, and that probably won't happen until after IPython 1.0 becomes official released.

Sylvain Corlay

unread,
Jul 11, 2013, 7:34:20 PM7/11/13
to spyd...@googlegroups.com, fsal...@alum.mit.edu
You should use the IPython console widget rather than the python console Widget...  S.
Reply all
Reply to author
Forward
0 new messages