Re: [sympy] Is anyone dying to use these 2.6+ only features?

2013-01-22 Thread Stefan Krastanov
Concerning the ABC module: It seems to be the correct way to do what we are doing now with all the `is_Whatever` properties. obj.is_Whatever == True -> isinstance(obj, WhateverABC) All the automatic correctness checks for "virtual" methods are nice as well. Moreover mpmath has a barebones suppor

Re: [sympy] SymPy 0.7.2 for Maemo 4 & 5 and MeeGo 1.2 Harmattan

2013-01-22 Thread Stefan Krastanov
I am a big fan of the hardware/OSs that you are supporting. Thanks a lot for providing packages. -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegroups.com. To unsubscribe from this group, send email to

Re: [sympy] SymPy 0.7.2 for Maemo 4 & 5 and MeeGo 1.2 Harmattan

2013-01-22 Thread Roberto Colistete Jr.
Em 22-01-2013 14:00, Stefan Krastanov escreveu: I am a big fan of the hardware/OSs that you are supporting. Thanks a lot for providing packages. Now SymPy 0.7.2 has IPython 0.13.1 with Notebook and Qt console interfaces, download it here : http://talk.maemo.org/showpost.php?p=1315683&po

Re: [sympy] SymPy 0.7.2 for Maemo 4 & 5 and MeeGo 1.2 Harmattan

2013-01-22 Thread Aaron Meurer
Cool. Does mathjax printing work in the notebook (i.e., %load_ext sympy.interactive.ipythonprinting)? You may want to automatically include a mathjax install so that people don't use up their data plan loading the CDN. Or make a note of how people can do it on WiFi (from IPython.external.mathjax

[sympy] how to catch SympifyError

2013-01-22 Thread Preston C
Hello, I'm trying to simply catch a SympifyError, and I cannot seem to get it working. What am I doing wrong? import sympy from sympy import * from sympy import core from sympy.core import sympify from sympy.interactive import * ... try: sympyEvaluationFloat = sympy.N(expression) except (Ze

Re: [sympy] how to catch SympifyError

2013-01-22 Thread Aaron Meurer
I guess you can import it with "from sympy.core.sympify import SympifyError". We really should include all public exceptions in an import *, though. I made https://github.com/sympy/sympy/pull/1727 for this. Any other public exceptions that aren't being imported by default? Aaron Meurer On Tue,

Re: [sympy] SymPy 0.7.2 for Maemo 4 & 5 and MeeGo 1.2 Harmattan

2013-01-22 Thread Roberto Colistete Jr.
Yeah, MathJax works on IPython 0.13.1-2 on Nokia N9/N950. As far as I am testing, everything works. I've packaged libjs_mathjax.deb (and its 2 dependencies), so IPython 0.13.1-2 for MeeGo Harmattan installs it if the Notebook interface is chosen. It's huge, 134 MB... I am finishing documenti

[sympy] SymPy 0.7.2 interactive use in IPython Qt & Notebook interfaces

2013-01-22 Thread Roberto Colistete Jr.
Em 22-01-2013 15:43, Aaron Meurer escreveu: Cool. Does mathjax printing work in the notebook (i.e., %load_ext sympy.interactive.ipythonprinting)? I am trying to learn and document the new features of SymPy 0.7.2 using IPython 0.13.1 on MeeGo Harmattan OS

Re: [sympy] SymPy 0.7.2 interactive use in IPython Qt & Notebook interfaces

2013-01-22 Thread Aaron Meurer
On Tue, Jan 22, 2013 at 12:25 PM, Roberto Colistete Jr. wrote: > Em 22-01-2013 15:43, Aaron Meurer escreveu: > > Cool. Does mathjax printing work in the notebook (i.e., %load_ext > sympy.interactive.ipythonprinting)? > > > I am trying to learn and document the new features of SymPy 0.7.2 using >

[sympy] init_printint() bug in IPython Notebook or Qt console ?

2013-01-22 Thread Roberto Colistete Jr.
When using SymPy 0.7.2 with IPython terminal ("$ ipython"), IPython Notebook ("$ ipython notebook") or Qt console ("$ ipython qtconsole") : In [1]: from sympy import * In [2]: from sympy.abc import * In [3]: pi*x**2 shows non-pretty print output, ok. But after using "init_printing()" on IPython

Re: [sympy] init_printint() bug in IPython Notebook or Qt console ?

2013-01-22 Thread Aaron Meurer
I noticed this too. I'd say its a bug. Aaron Meurer On Jan 22, 2013, at 2:19 PM, "Roberto Colistete Jr." wrote: > When using SymPy 0.7.2 with IPython terminal ("$ ipython"), IPython Notebook > ("$ ipython notebook") or Qt console ("$ ipython qtconsole") : > > In [1]: from sympy import * > In [

Re: [sympy] SymPy 0.7.2 interactive use in IPython Qt & Notebook interfaces

2013-01-22 Thread Roberto Colistete Jr.
Em 22-01-2013 17:36, Aaron Meurer escreveu: On Tue, Jan 22, 2013 at 12:25 PM, Roberto Colistete Jr. wrote: Em 22-01-2013 15:43, Aaron Meurer escreveu: Cool. Does mathjax printing work in the notebook (i.e., %load_ext sympy.interactive.ipythonprinting)? I am trying to learn and document the

Re: [sympy] SymPy 0.7.2 interactive use in IPython Qt & Notebook interfaces

2013-01-22 Thread Aaron Meurer
On Tue, Jan 22, 2013 at 2:38 PM, Roberto Colistete Jr. wrote: > Em 22-01-2013 17:36, Aaron Meurer escreveu: > >> On Tue, Jan 22, 2013 at 12:25 PM, Roberto Colistete Jr. >> wrote: >>> >>> Em 22-01-2013 15:43, Aaron Meurer escreveu: >>> >>> Cool. Does mathjax printing work in the notebook (i.e., %

Re: [sympy] init_printint() bug in IPython Notebook or Qt console ?

2013-01-22 Thread Aaron Meurer
I opened http://code.google.com/p/sympy/issues/detail?id=3604 for this so we don't forget about it. Aaron Meurer On Tue, Jan 22, 2013 at 2:24 PM, Aaron Meurer wrote: > I noticed this too. I'd say its a bug. > > Aaron Meurer > > On Jan 22, 2013, at 2:19 PM, "Roberto Colistete Jr." > wrote: > >>

Re: [sympy] SymPy 0.7.2 interactive use in IPython Qt & Notebook interfaces

2013-01-22 Thread Roberto Colistete Jr.
Em 22-01-2013 22:23, Aaron Meurer escreveu: On Tue, Jan 22, 2013 at 2:38 PM, Roberto Colistete Jr. wrote: Thanks, so I think it is better : In [1]: %pylab inline In [2]: from sympy.interactive import * In [3]: init_session() or, with simpler initialization (no symbols, etc) : In [1]: %

Re: [sympy] init_printint() bug in IPython Notebook or Qt console ?

2013-01-22 Thread Roberto Colistete Jr.
Thanks. Em 22-01-2013 22:26, Aaron Meurer escreveu: I opened http://code.google.com/p/sympy/issues/detail?id=3604 for this so we don't forget about it. Aaron Meurer On Tue, Jan 22, 2013 at 2:24 PM, Aaron Meurer wrote: I noticed this too. I'd say its a bug. Aaron Meurer On Jan 22, 2013, at

Re: [sympy] SymPy 0.7.2 interactive use in IPython Qt & Notebook interfaces

2013-01-22 Thread Aaron Meurer
On Tue, Jan 22, 2013 at 6:41 PM, Roberto Colistete Jr. wrote: > Em 22-01-2013 22:23, Aaron Meurer escreveu: >> >> On Tue, Jan 22, 2013 at 2:38 PM, Roberto Colistete Jr. >> wrote: >> >>> Thanks, so I think it is better : >>> >>> In [1]: %pylab inline >>> In [2]: from sympy.interactive import

[sympy] SymPy 0.7.2 new plotting module bugs

2013-01-22 Thread Roberto Colistete Jr.
Em 22-01-2013 22:23, Aaron Meurer escreveu: You'll need to do this first (before importing SymPy) because of a SymPy bug where importing SymPy imports matplotlib and already sets the backend (see http://code.google.com/p/sympy/issues/detail?id=3427). Aaron Meurer About SymPy always loadi

Re: [sympy] SymPy 0.7.2 new plotting module bugs

2013-01-22 Thread Aaron Meurer
I 100% agree. This issue wasn't fixed at release time because it is delicate (we don't want matplotlib to be imported with SymPy but we do want it to be imported by the time plot() is called), and I didn't want to delay the release any further. For matplotlib, we just need to modify how the plotti

Re: [sympy] f'(x) evaluated at x_0

2013-01-22 Thread Aaron Meurer
It does. What you have is the string form, which is designed to be readable, but also copy-pastable. Like almost all SymPy objects, there are pretty printers for Subs, including ASCII, Unicode, and LaTeX. For ASCII/Unicode, you get the bar notation: In [3]: pprint(Subs(diff(f(x), x), x, 0)) ⎛d