Ubuntu 12.04 : SymPy 0.7.1 incompatible with IPython 1.x ?

56 views
Skip to first unread message

Roberto Colistete Jr.

unread,
May 8, 2014, 9:24:01 AM5/8/14
to sy...@googlegroups.com
Hi,

In Ubuntu 12.04 :
- SymPy version is 0.7.1.rc1-2
(http://packages.ubuntu.com/precise/python-sympy);
- IPython default version is 0.12.1
(http://packages.ubuntu.com/precise/ipython), or 0.13.2 if
precise-backports is enabled
(http://packages.ubuntu.com/precise-backports/ipython);
- PPA jtaylor/ipython (https://launchpad.net/~jtaylor/+archive/ipython)
has IPython 1.2.1 since some months;

But it seems SymPy 0.7.1 is incompatible with IPython 1.x, since
pretty printing is impossible :
- "load_ext sympyprinting" doesn't work when the next command tries to
show pretty printing it gives the error message "UnsupportedOperation:
IOStream has no fileno";
- "init_printing()" (recommended way for SymPy >= 0.7.2) doesn't work,
when the next command tries to show pretty printing it shows only
one-dimensional output;
- "load_ext sympy.interactive.ipythonprinting" is not implemented, i.e.,
gives the error "ImportError: No module named ipythonprinting".

As Ubuntu 12.04 is still very popular, I see one of these solutions :
* disable PPA jtaylor/ipython and remain using IPython 0.12.1/0.13.2,
compatible with SymPy 0.7.1;
* use IPython 1.2.1 (from PPA jtaylor/ipython) with newer version of
SymPy manually installed (python setup.py install, pip install sympy
--upgrade, etc);
* somebody creates a Ubuntu PPA (for 12.04, 12.10, 13.04, 13.10) with
newer versions of SymPy.

There is obviously the option to move on to Ubuntu 14.04, with
Python 2.7.6/3.4.0, IPython 1.2.1, SymPy 0.7.4.1, NumPy 1.8.1,
MatPlotLib 1.3.1, SciPy v0.13.3, etc.

Any more suggestions or comments ?

Kind regards,

Roberto

Aaron Meurer

unread,
May 8, 2014, 3:06:38 PM5/8/14
to sy...@googlegroups.com
Each version of SymPy has only been tested with the latest version of
IPython at the time it was released. You can probably use the old
location of the ipython printing extension, which was in IPython
somewhere.

I would recommend trying to get a newer SymPy and IPython, as both of
those are quite ancient versions at this point (especially the SymPy
one). SymPy is pure Python (as is IPython if you only care about
terminal support). It should be easy enough to install them.

Aaron Meurer
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sympy+un...@googlegroups.com.
> To post to this group, send email to sy...@googlegroups.com.
> Visit this group at http://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/536B8571.8090508%40gmail.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages