You are not logged in.

#1 2011-09-20 06:19:58

anirudh215
Member
Registered: 2011-03-07
Posts: 78

ipython problem after upgrade

After I Syu'd, I found that ipython has shifted to python3. However, matplotlib is still dependent on python2. When I start ipython with the --pylab flag, I get a 'no module name matplotlib' error.

Offline

#2 2011-09-20 09:57:46

keenerd
Package Maintainer (PM)
Registered: 2007-02-22
Posts: 647
Website

Re: ipython problem after upgrade

Install ipython2.

Also, if you have ipython-docs installed you'll have to manually remove it and add ipython2-docs.

Offline

#3 2011-09-21 06:44:49

rodprice
Member
Registered: 2009-07-03
Posts: 5

Re: ipython problem after upgrade

The upgrade breaks emacs-ipython-mode as well.  I've changed my
previous setup in .emacs

(setq py-python-command-args '("--pylab"))
(require 'ipython)

to a new setup,

(setq ipython-command "/usr/bin/ipython2")
(setq py-python-command-args '("--pylab"))
(require 'ipython)

and I have installed ipython2.  Starting up the IPython shell in emacs
generates the following error

Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'olors' is not defined
>>>


I'm a bit stumped at this point.

-Rod

Offline

#4 2011-09-21 11:29:23

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: ipython problem after upgrade

rodprice wrote:

The upgrade breaks emacs-ipython-mode as well.  I've changed my
previous setup in .emacs

(setq py-python-command-args '("--pylab"))
(require 'ipython)

to a new setup,

(setq ipython-command "/usr/bin/ipython2")
(setq py-python-command-args '("--pylab"))
(require 'ipython)

and I have installed ipython2.  Starting up the IPython shell in emacs
generates the following error

Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'olors' is not defined
>>>


I'm a bit stumped at this point.

-Rod

find out why it is trying to use 'olors' instead of 'colors'
grep can be handy for this.

Sidenote, ipython does some silly things, so beware that some scripts might not run in it but run fine standalone, or the other way around.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#5 2011-10-10 22:24:56

mauro
Member
Registered: 2010-01-26
Posts: 5

Re: ipython problem after upgrade

The latest version of ipython.el fixes the "olors" problem. See comment (and references therein) by mauro2 for more
https://aur.archlinux.org/packages.php?ID=26456

Offline

Board footer

Powered by FluxBB