Spyder 2.3 has no IPython console?

824 views
Skip to first unread message

Roel De Coninck

unread,
Feb 3, 2014, 3:29:50 AM2/3/14
to spyd...@googlegroups.com
Hi all,

(I'm using Spyder 2.3.0beta3 on Ubuntu 13.10, 64 bit and Python 2.7+)

I'm confused by the Spyder consoles: 
  1. I have no option to start an IPython interpreter
  2. My menu shows a 'Consoles' entry, but no 'Interpreters' entry as stated in the 2.2 docs
Am I running a dev version of spyder that is not able to run an IPython interpreter anymore or is there something else I should configure to get an IPython console in Spyder?

Thanks,
Roel

David Verelst

unread,
Feb 3, 2014, 9:00:10 AM2/3/14
to spyder
Hi Roel,

What version of IPython are you running, and are you still running on Linux? I think you need to have a recent version of IPython to have the latest spyder+ipython combi running. I am also running 2.3.0beta3 and have IPython 1.1, but have no problems with the IPython console.

Regards,
David


--
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.

Roel De Coninck

unread,
Feb 4, 2014, 5:54:58 AM2/4/14
to spyd...@googlegroups.com
Hi David,

Yes, I'm on ubuntu.  When I start IPython from bash, I get the following:

Python 2.7.5+ (default, Sep 19 2013, 13:48:49) 
Type "copyright", "credits" or "license" for more information.

IPython 0.13.2 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

Welcome to pylab, a matplotlib-based Python environment [backend: TkAgg].
For more information, type 'help(pylab)'.

In [1]:  ...


Somehow, the release of ipython 1.0 and 1.1 seem to have passed unnoticed... 
However, when I try to update with apt-get, there seems to be no update available.  Here's more info:

sudo apt-cache policy ipython
ipython:
  Installed: 0.13.2-2
  Candidate: 0.13.2-2
  Version table:
 *** 0.13.2-2 0
        500 http://be.archive.ubuntu.com/ubuntu/ saucy/universe amd64 Packages
        100 /var/lib/dpkg/status

Do I have to add a specific repository to my apt-get sources list?
Thanks,
Roel

Adrian Klaver

unread,
Feb 4, 2014, 9:14:22 AM2/4/14
to spyd...@googlegroups.com
Well there is this PPA:

https://launchpad.net/~jtaylor/+archive/ipython

or you could use pip to install from pypi.

> Thanks,
> Roel
>
>


--
Adrian Klaver
adrian...@gmail.com

Uwe Fechner

unread,
Feb 4, 2014, 10:44:26 AM2/4/14
to spyd...@googlegroups.com
I suggest to use pip:

sudo apt-get install python-pip

sudo pip install -U pyzmq

sudo pip install -U ipython


Then start ipython on the command line and check the version. You need version 1.0 or 1.1.


Does this work for you?


Regards:


Uwe Fechner



2014-02-04 Roel De Coninck <roelde...@gmail.com>:

Roel De Coninck

unread,
Feb 4, 2014, 3:30:32 PM2/4/14
to spyd...@googlegroups.com
I have added the PPA Adrian suggested to my apt-get sources list, and updated ipython.  I now have version 1.1, that's great!  I prefer the apt-get solution over pip because I use apt-get to manage updates of all installed software.  Maybe the same is possible with pip but I didn't try yet. 

Anyway, I still do not get a menu entry to start an ipython interpreter in Spyder.  In the Tools/Preferences/Console/Advanced settings, when I change the path to the default python interpreter to /usr/bin/ipython, the resulting console does not startup correctly.  However, starting ipython from a terminal works perfectly.  

Is there something else I'm missing?  Should I try to update (or downgrade) Spyder?  (version now is 2.3.0beta3)

Thanks,
Roel

Adrian Klaver

unread,
Feb 4, 2014, 4:13:46 PM2/4/14
to spyd...@googlegroups.com
On 02/04/2014 12:30 PM, Roel De Coninck wrote:
> I have added the PPA Adrian suggested to my apt-get sources list, and
> updated ipython. I now have version 1.1, that's great! I prefer the
> apt-get solution over pip because I use apt-get to manage updates of all
> installed software. Maybe the same is possible with pip but I didn't
> try yet.
>
> Anyway, I still do not get a menu entry to start an ipython interpreter
> in Spyder. In the Tools/Preferences/Console/Advanced settings, when I
> change the path to the default python interpreter to /usr/bin/ipython,
> the resulting console does not startup correctly. However, starting
> ipython from a terminal works perfectly.

Just leave the console setting at the default. You can then have two
consoles available, the regular python one and ipython. Make sure you go
to the View-->Windows menu item and check the IPython item so it will
appear.

>
> Is there something else I'm missing? Should I try to update (or
> downgrade) Spyder? (version now is 2.3.0beta3)

I am and have been using 2.3x with IPython 1.0/1.1 with no issues, so I
would say stay the course.

Roel De Coninck

unread,
Feb 4, 2014, 4:52:01 PM2/4/14
to spyd...@googlegroups.com
Adrian,

I have no such entry in my menu.  See the printscreen below.



And now it gets even worse: I restarted my computer between taking the screenshot and posting this reply, and I'm even not able to start spyder anymore by typing 'spyder' in a terminal, nor using the Ubuntu dash.  I can still start spyder by typing python /usr/lib/python2.7/dist-packages/spyderlib/spyder.py .  I don't understand what's going on...

roel 

Adrian Klaver

unread,
Feb 4, 2014, 5:22:29 PM2/4/14
to spyd...@googlegroups.com
On 02/04/2014 01:52 PM, Roel De Coninck wrote:
> Adrian,
>
> I have no such entry in my menu. See the printscreen below.
>
> <https://lh4.googleusercontent.com/-jxV6DRA9G14/UvFd8dzVhyI/AAAAAAAAAr0/13hhKafMYwQ/s1600/spydermenu.png>
>
>
>
> And now it gets even worse: I restarted my computer between taking the
> screenshot and posting this reply, and I'm even not able to start spyder
> anymore by typing 'spyder' in a terminal, nor using the Ubuntu dash. I
> can still start spyder by typing python
> /usr/lib/python2.7/dist-packages/spyderlib/spyder.py . I don't
> understand what's going on...

From the command line, what does whereis spyder show?

When you use the dist-packages start up what version of Spyder are you
getting?

What does your package manager show for Spyder?

>
> roel
>
>
Adrian Klaver
adrian...@gmail.com

Roel De Coninck

unread,
Feb 4, 2014, 6:02:29 PM2/4/14
to spyd...@googlegroups.com
Hi, 

  • I tried to downgrade spyder by installing version 2.2.5, but then I could not even start spyder with the python /usr/lib/python2.7/dist-packages/spyderlib/spyder.py command
  • I then tried to uninstall spyder completely (by deleting files manually and eventually also apt-get remove spyder)
  • I reinstalled the 2.3beta3 from source: downloaded the .zip and sudo python setup.py install in the unzipped spyder-2.3.0beta3 folder
  • Still the spyder command does nothing, but python /usr/lib/python2.7/dist-packages/spyderlib/spyder.py starts spyder again (still without ipython console)
Now for your questions:
  • whereis spyder
    spyder: /usr/bin/spyder /usr/bin/X11/spyder /usr/local/bin/spyder /usr/share/man/man1/spyder.1.gz
  • what do you mean with dist-packages start up?
  • I think my package manager shows nothing because now I installed spyder with python setup.py install.  Below some outputs that may help?
~ $ apt-get changelog spyder
  404  Not Found
  404  Not Found
E: changelog for this version is not (yet) available; try https://launchpad.net/ubuntu/+source/spyder/+changelog

~ $ dpkg -l | grep spyder
ii  python-spyderlib                            2.3.0~ppa12~revno-2443~ubuntu13.10.1          all          python IDE for scientists
ii  spyder                                      2.3.0~ppa12~revno-2443~ubuntu13.10.1          all          python IDE for scientists

I guess the dpkg results come from the apt-get install spyder I did earlier tonight. 

I don't mind to startup spyder with python /usr/lib/python2.7/dist-packages/spyderlib/spyder.py.  I can easily make an alias for this. But I still do not have any IPython console, so we're back to where we started :-(

Thanks for your time,
Roel

Adrian Klaver

unread,
Feb 4, 2014, 6:16:44 PM2/4/14
to spyd...@googlegroups.com
On 02/04/2014 03:02 PM, Roel De Coninck wrote:
> Hi,
>
> * I tried to downgrade spyder by installing version 2.2.5, but then I
> could not even start spyder with the
> python /usr/lib/python2.7/dist-packages/spyderlib/spyder.py command
> * I then tried to uninstall spyder completely (by deleting files
> manually and eventually also apt-get remove spyder)

The dpkg listing below would say that you did not actually remove the
previous versions of Spyder.

> * I reinstalled the 2.3beta3 from source: downloaded the .zip and sudo
> python setup.py install in the unzipped spyder-2.3.0beta3 folder
> * Still the spyder command does nothing, but python
> /usr/lib/python2.7/dist-packages/spyderlib/spyder.py starts spyder
> again (still without ipython console)
>
> Now for your questions:
>
> * whereis spyder
> spyder: /usr/bin/spyder /usr/bin/X11/spyder /usr/local/bin/spyder
> /usr/share/man/man1/spyder.1.gz

Seems there is more than one version of Spyder installed, where I
believe the /usr/bin is the apt-get installed version and /usr/local/bin
would be the source version.

> * what do you mean with dist-packages start up?
> * I think my package manager shows nothing because now I installed
> spyder with python setup.py install. Below some outputs that may help?
>
> ~ $ apt-get changelog spyder
> Err Changelog for spyder
> (http://changelogs.ubuntu.com/changelogs/pool/main/s/spyder/spyder_2.3.0~ppa12~revno-2443~ubuntu13.10.1/changelog)
> 404 Not Found
> Err Changelog for spyder
> (http://ppa.launchpad.net/pythonxy/pythonxy-devel/ubuntu/pool/main/s/spyder/spyder_2.3.0~ppa12~revno-2443~ubuntu13.10.1.changelog)
> 404 Not Found
> E: changelog for this version is not (yet) available; try
> https://launchpad.net/ubuntu/+source/spyder/+changelog
>
> ~ $ dpkg -l | grep spyder
> ii python-spyderlib
> 2.3.0~ppa12~revno-2443~ubuntu13.10.1 all python IDE
> for scientists
> ii spyder
> 2.3.0~ppa12~revno-2443~ubuntu13.10.1 all python IDE
> for scientists
>
> I guess the dpkg results come from the apt-get install spyder I did
> earlier tonight.
>
> I don't mind to startup spyder with python
> /usr/lib/python2.7/dist-packages/spyderlib/spyder.py. I can easily make
> an alias for this. But I still do not have any IPython console, so we're
> back to where we started :-(

Well you still not have said what version you are actually working with
when you do get it started:)

At this point I would uninstall any and all versions of Spyder and start
over. My suggestion would be to use pip to do the install. It is
becoming quite capable as a package manger.

>
> Thanks for your time,
> Roel
>



--
Adrian Klaver
adrian...@gmail.com

Adrian Klaver

unread,
Feb 4, 2014, 7:23:27 PM2/4/14
to spyd...@googlegroups.com
On 02/04/2014 03:02 PM, Roel De Coninck wrote:
> Hi,

>
> I don't mind to startup spyder with python
> /usr/lib/python2.7/dist-packages/spyderlib/spyder.py. I can easily make
> an alias for this. But I still do not have any IPython console, so we're
> back to where we started :-(

Just realized I gave you bogus advice. Spyder 2.3beta* is not available
through pypi, so you will not be able to use pip to install it. You will
need to do what you already did, download the source and use python
setup.py. Sorry.

>
> Thanks for your time,
> Roel
>


--
Adrian Klaver
adrian...@gmail.com

Roel De Coninck

unread,
Feb 5, 2014, 2:31:25 AM2/5/14
to spyd...@googlegroups.com
The additional restart cycle tonight seemed to fix one issue already: typing spyder in the terminal (which points to /usr/local/bin/spyder and this is indeed the most recently installed spyder) works again.  And the resulting spyder is version 2.3.0beta3, just like before.  So actually it looks like spyder is perfectly installed now.  And the Help/Optional dependencies show 'OK' for all optional dependencies.

But still I have exactly the same menus as before (see screenshot a few posts back), so no IPython console.  What still bothers me is that my menu shows a 'Consoles' entry, but no 'Interpreters' entry as stated in the 2.2 docs.  Is there a log file that could contain a clue of what's going on?

Roel

Adrian Klaver

unread,
Feb 5, 2014, 10:19:42 AM2/5/14
to spyd...@googlegroups.com
On 02/04/2014 11:31 PM, Roel De Coninck wrote:
> The additional restart cycle tonight seemed to fix one issue already:
> typing spyder in the terminal (which points to /usr/local/bin/spyder and
> this is indeed the most recently installed spyder) works again. And the
> resulting spyder is version 2.3.0beta3, just like before. So actually
> it looks like spyder is perfectly installed now. And the Help/Optional
> dependencies show 'OK' for all optional dependencies.
>
> But still I have exactly the same menus as before (see screenshot a few
> posts back), so no IPython console. What still bothers me is that my
> menu shows a 'Consoles' entry, but no 'Interpreters' entry as stated in
> the 2.2 docs. Is there a log file that could contain a clue of what's
> going on?

Would seem to indicate Spyder is not finding IPython.

Is the 1.x version of IPython still installed?

Not sure about the Interpreters/Console thing, could you send a link to
where you see that in the docs?

The best way I have found to 'log' is to start Spyder from a terminal
and look at the output to the screen.

In ~.spyder2/ there is a file monitor.log. Not quite sure what it logs,
but it might be worth a look.

Roel De Coninck

unread,
Feb 5, 2014, 11:06:39 AM2/5/14
to spyd...@googlegroups.com

Here's  the link to the documentation,  and  clearly don't  have this menu. http://pythonhosted.org/spyder/ipythonconsole.html

I'll check the logs when  I'm back at my computer.

Op 5 feb. 2014 16:19 schreef "Adrian Klaver" <adrian...@gmail.com>:
--
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/lQWKCEatf54/unsubscribe.
To unsubscribe from this group and all its topics, send an email to spyderlib+unsubscribe@googlegroups.com.

Adrian Klaver

unread,
Feb 5, 2014, 11:27:03 AM2/5/14
to spyd...@googlegroups.com
On 02/05/2014 08:06 AM, Roel De Coninck wrote:
> Here's the link to the documentation, and clearly don't have this

I see. I believe Interpreters has been replaced by Console on the menu bar.

Two reasons you will not see the IPython console:

1) You do not have IPython installed.

2) Spyder cannot find IPython in your installation.

> menu. http://pythonhosted.org/spyder/ipythonconsole.html
>
> I'll check the logs when I'm back at my computer.
>


--
Adrian Klaver
adrian...@gmail.com

Martin Durant

unread,
Feb 5, 2014, 11:39:43 AM2/5/14
to spyd...@googlegroups.com
Spyder 2.3b3 and ipython 0.13.1 work fine together on Ubuntu 13.04/Mint 13 64bit.
When installing ipython via apt-get, ensure you get all the related packages, such as the qtconsole.
Spyder I installed from source via setup.py.

Carlos Córdoba

unread,
Feb 6, 2014, 12:37:30 AM2/6/14
to spyd...@googlegroups.com
Yes, I think this is your main problem Roel, i.e. you need to run

sudo apt-get install ipython-qtconsole

besides

sudo apt-get install ipython

to get an IPython console inside Spyder. This is mentioned in our
installation instructions

http://pythonhosted.org/spyder/installation.html#recommended-modules

Cheers,
Carlos

El 05/02/14 11:39, Martin Durant 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.

Roel De Coninck

unread,
Feb 6, 2014, 3:18:36 AM2/6/14
to spyd...@googlegroups.com
Indeed, sudo apt-get install ipython-qtconsole solved the problem.

I know I should have read the install documentation, it's clearly mentioned.  We're getting a bit spoiled with apt-get and pip package managers....  Would have saved me a couple hours... 
Maybe we can turn this into a suggestion: could qt-console be a dependency for Spyder on Ubuntu so apt-get will install it automatically?  Or maybe qtconsole could be mentioned in the dependency checklist in Help/Optional Dependencies ? 

Glad it works now anyway.  Thanks all for your help and for giving us Spyder.
Roel

David Verelst

unread,
Feb 6, 2014, 6:06:06 AM2/6/14
to spyder

Hi All,

It is the responsibility of the Ubuntu package managers to correctly list dependencies, and I guess we should make sure the packagers understand what these are. On Arch Linux for example, the IPython QtConsole is included in the default ipython package if the necessary dependencies are satisfied. Apparently the Ubuntu packagers decided to split the qtconsole part in another package.

Note that Spyder packages in Ubuntu from raring (13.04) and upwards list correctly ipython-qtconsole as a dependency. Older packages (quantal 12.10) and older only have ipython listed as a dependency. From which repository did you install Spyder? Is that the pythonxy-dev? I couldn't figure it our from the ppa website, but it seems that ipython-qtconsole is not correctly listed as a dependency for these packages? If they don't I think they should.

But you have a valid point: ipython-qtconsole is only mentioned in the section Installing or running directly from source, and it is assumed the packages have correctly listed all required dependencies. It seems that not the case for older Ubuntu packages. We could re-organize that page; I guess there is always room for improvement.

Best regards,

David

Roel De Coninck

unread,
Feb 6, 2014, 8:28:52 AM2/6/14
to spyd...@googlegroups.com
David,

I don't remember how I installed Spyder originally, sorry.  It could be through apt-get, easy_install or pip.  The current version is installed with Spyder's setup.py. 
I don't want to blame anyone of course: the solution was damn easy after all.  I don't know if this problem occurs often, but if it does, an additional check at startup (with user feedback if ipython-qtconsole was not found) would be a nice improvement.

Best regards,
Roel


--
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/lQWKCEatf54/unsubscribe.
To unsubscribe from this group and all its topics, send an email to spyderlib+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages