Spyder 2.3.2 : No Python console is currently selected to run

11,742 views
Skip to first unread message

brendan...@yahoo.com

unread,
Feb 5, 2015, 8:34:46 AM2/5/15
to spyd...@googlegroups.com
Hi,

I recently started using Spyder 2.3.1 (Anaconda 64-bit win) and it was working beautifully. The first time I ran a script the run dialog would pop open and the script would run. But something has become unglued. Today when I try to run a scrip, no dialog pops up. Instead I get the "No Python console is currently selected to run" pop-up. If I restart the kernel, then the script runs without the run dialog. If I change the run settings to run in a new kernel, then it runs. I have tried resetting preferences, and the "Reset Spyder Settings" link in the Anaconda start menu. I have just upgraded to Spyder 2.3.2. The problem remains. For some reason, upon startup Spyder is not picking up the first kernel. Having to hit ctrl-. whenever I start Spyder is not the end of the world, but how can I fix this?


Adrian Klaver

unread,
Feb 5, 2015, 11:34:45 AM2/5/15
to spyd...@googlegroups.com
Does this act anything like this?:

https://groups.google.com/forum/#!topic/spyderlib/Hh4lZ2YHIvY

If you go the menu bar Help --> Report issue it will pull out the
relevant version information and post to issue page. You do not have to
create an issue, just cut and past the information in the Description
box in your reply here.

>
>
> --



--
Adrian Klaver
adrian...@aklaver.com

brendan...@yahoo.com

unread,
Feb 5, 2015, 3:10:46 PM2/5/15
to spyd...@googlegroups.com
Yes. It is the exact same issue. What is weird is that it did not happen the first few times I ran Spyder.
Here is my info:

Spyder Version:  2.3.2
Python Version:  2.7.8
Qt Version    :  4.8.6, PyQt4 (API v2) 4.10.4 on Windows
pyflakes >=0.5.0:  0.8.1 (OK)
pep8 >=0.6      :  1.5.7 (OK)
IPython >=0.13  :  2.3.1 (OK)
zmq >=2.1.11    :  14.5.0 (OK)
pygments >=1.6  :  2.0.1 (OK)
pandas >=0.13.1 :  0.14.1 (OK)
sphinx >=0.6.6  :  1.2.3 (OK)
rope >=0.9.2    :  0.9.4 (OK)
matplotlib >=1.0:  1.4.0 (OK)
sympy >=0.7.0   :  0.7.5 (OK)
pylint >=0.25   :  1.3.1 (OK)

Adrian Klaver

unread,
Feb 5, 2015, 4:16:36 PM2/5/15
to spyd...@googlegroups.com
On 02/05/2015 12:10 PM, brendandetracey via spyder wrote:
> Yes. It is the exact same issue. What is weird is that it did not happen
> the first few times I ran Spyder.
> Here is my info:
>
> Spyder Version: 2.3.2
> Python Version: 2.7.8
> Qt Version : 4.8.6, PyQt4 (API v2) 4.10.4 on Windows
> pyflakes >=0.5.0: 0.8.1 (OK)
> pep8 >=0.6 : 1.5.7 (OK)
> IPython >=0.13 : 2.3.1 (OK)
> zmq >=2.1.11 : 14.5.0 (OK)
> pygments >=1.6 : 2.0.1 (OK)
> pandas >=0.13.1 : 0.14.1 (OK)
> sphinx >=0.6.6 : 1.2.3 (OK)
> rope >=0.9.2 : 0.9.4 (OK)
> matplotlib >=1.0: 1.4.0 (OK)
> sympy >=0.7.0 : 0.7.5 (OK)
> pylint >=0.25 : 1.3.1 (OK)
>

So what are your preferences set to in Tools --> Preferences --> Run?

How are you running the script?

In your previous post you mention a pop up dialog. I do not get that on
my machine(openSuse 13.1). What is the dialog?

>
> On Thursday, February 5, 2015 at 9:34:46 AM UTC-4, brendan...@yahoo.com
> wrote:
>
> Hi,
>
> I recently started using Spyder 2.3.1 (Anaconda 64-bit win) and it
> was working beautifully. The first time I ran a script the run
> dialog would pop open and the script would run. But something has
> become unglued. Today when I try to run a scrip, no dialog pops up.
> Instead I get the "No Python console is currently selected to run"
> pop-up. If I restart the kernel, then the script runs without the
> run dialog. If I change the run settings to run in a new kernel,
> then it runs. I have tried resetting preferences, and the "Reset
> Spyder Settings" link in the Anaconda start menu. I have just
> upgraded to Spyder 2.3.2. The problem remains. For some reason, upon
> startup Spyder is not picking up the first kernel. Having to hit
> ctrl-. whenever I start Spyder is not the end of the world, but how
> can I fix this?
>
>
> --
> 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
> <mailto:spyderlib+...@googlegroups.com>.
> To post to this group, send email to spyd...@googlegroups.com
> <mailto:spyd...@googlegroups.com>.
> Visit this group at http://groups.google.com/group/spyderlib.
> For more options, visit https://groups.google.com/d/optout.


--
Adrian Klaver
adrian...@aklaver.com

brendan...@yahoo.com

unread,
Feb 9, 2015, 9:29:13 AM2/9/15
to spyd...@googlegroups.com
Run preferences are set to:
Execute in current Python or IPython console.
Default working directory is the script directory.

I am running the script from the script editor i.e. clicking the Run icon or hitting F5.

The popup I describe(from memory since I haven't seen it since this problem started) was the Run Preferences popup. The first time running a script(F5 in the editor) after starting Spyder a popup would open to ask me my run preferences and whether I wanted to see this popup again.

Adrian Klaver

unread,
Feb 9, 2015, 10:30:35 AM2/9/15
to spyd...@googlegroups.com
So what happens if you start Spyder, click in either the Python or
IPython console (not the one with the Kernel id as its tab) and then Run?

brendan...@yahoo.com

unread,
Feb 10, 2015, 9:53:35 AM2/10/15
to spyd...@googlegroups.com
Clicking on the Python console works. I do not have a tab for an IPython console upon startup. Like I said, the odd thing is that this did not happen when I first installed. And all I have done is customize my Spyder layout.

Adrian Klaver

unread,
Feb 10, 2015, 10:38:52 AM2/10/15
to spyd...@googlegroups.com
So in the Menu under Consoles do you see Open an IPython console?

In your customization, did you happen to remove the IPython pane?
See Menu --> View --> Panes

brendan...@yahoo.com

unread,
Feb 10, 2015, 11:32:01 AM2/10/15
to spyd...@googlegroups.com
Sorry, I was mistaken. There is an Ipython console when I start Spyder.

Adrian Klaver

unread,
Feb 10, 2015, 2:08:32 PM2/10/15
to spyd...@googlegroups.com
On 02/10/2015 08:32 AM, brendandetracey via spyder wrote:
> Sorry, I was mistaken. There is an Ipython console when I start Spyder.

So if you click on the IPython console does Run operate on it?

>
> On Tuesday, February 10, 2015 at 11:38:52 AM UTC-4, Adrian Klaver wrote:
>
> On 02/10/2015 06:53 AM, brendandetracey via spyder wrote:
> > Clicking on the Python console works. I do not have a tab for an
> IPython
> > console upon startup. Like I said, the odd thing is that this did
> not
> > happen when I first installed. And all I have done is customize my
> > Spyder layout.
>
> So in the Menu under Consoles do you see Open an IPython console?
>
> In your customization, did you happen to remove the IPython pane?
> See Menu --> View --> Panes
> >
> >
> > --
>
>
> --
> Adrian Klaver
> adrian...@aklaver.com <javascript:>



--
Adrian Klaver
adrian...@aklaver.com

brendan...@yahoo.com

unread,
Feb 10, 2015, 2:52:22 PM2/10/15
to spyd...@googlegroups.com
Yes. If I click on either the Python or IPython console first , Run does operate.

Adrian Klaver

unread,
Feb 10, 2015, 7:52:42 PM2/10/15
to spyd...@googlegroups.com
On 02/10/2015 11:52 AM, brendandetracey via spyder wrote:
> Yes. If I click on either the Python or IPython console first , Run does
> operate.
>

Well, the only way I can get Run not find a console is to have the
Python console that has the Kernel number in the tab be the
current(foremost) console. See attached screenshot.

So in your customizations did you 'hide' the consoles somehow?


--
Adrian Klaver
adrian...@aklaver.com
no_console.jpg

brendan...@yahoo.com

unread,
Feb 11, 2015, 7:46:18 AM2/11/15
to spyd...@googlegroups.com
Well, that is what happens to me. The Kernel tab is always starting foremost. I tried "Reset Window Layout", restarted Spyder, and the problem went away. However, when I adjust the window layout back to my liking, it breaks again, giving the Kernel focus upon startup. I have attached a screenshot of my layout.
Capture.PNG

Adrian Klaver

unread,
Feb 11, 2015, 10:00:13 AM2/11/15
to spyd...@googlegroups.com
On 02/11/2015 04:46 AM, brendandetracey via spyder wrote:
> Well, that is what happens to me. The Kernel tab is always starting
> foremost. I tried "Reset Window Layout", restarted Spyder, and the
> problem went away. However, when I adjust the window layout back to my
> liking, it breaks again, giving the Kernel focus upon startup. I have
> attached a screenshot of my layout.

I see. Well in my setup all the consoles are grouped together and when
the IPython console is started it goes to to the top and becomes the
current console. In my previous post I forced the 'Kernel' console to
the top to get the error to trigger. In your setup it looks like the
'Kernel' console becomes the current console, until you click in one of
the others. Seems visible is not necessarily current. Also seems Spyder
does not test for the presence of other open consoles and instead errors
out on first failure. I would file a bug report, because in my mind at
least, Run should skip over the 'Kernel' console and run in the IPython one.


>
>
> On Tuesday, February 10, 2015 at 8:52:42 PM UTC-4, Adrian Klaver wrote:
>
> On 02/10/2015 11:52 AM, brendandetracey via spyder wrote:
> > Yes. If I click on either the Python or IPython console first ,
> Run does
> > operate.
> >
>
> Well, the only way I can get Run not find a console is to have the
> Python console that has the Kernel number in the tab be the
> current(foremost) console. See attached screenshot.
>
> So in your customizations did you 'hide' the consoles somehow?
>
>
> --
> Adrian Klaver
> adrian...@aklaver.com <javascript:>

Armani Bless

unread,
Mar 1, 2015, 9:56:11 PM3/1/15
to spyd...@googlegroups.com
Thanks, this was very helpful.
Reply all
Reply to author
Forward
0 new messages