Update SymPy profile: SymPy's latex() can now print set and frozenset#1773
Conversation
I've included a version check against the latest version of SymPy that supports it (the current development version, 0.7.1-git), so that users of old versions of SymPy where this doesn't work will still have a good user experience. This is a continuation of pull request ipython#1399.
|
It seems a bit odd for IPython to test for an unreleased version of SymPy. A related question: why isn't sympy shipping this extension itself, so that users could do: ? Obviously, there are advantages to it being on either side, but I think it belongs in sympy in the long run. |
|
I agree. See http://code.google.com/p/sympy/issues/detail?id=2945. The short answer is that we haven't gotten around to it yet. |
|
I included the version check because this only works with the latest development version. Before the SymPy fix, |
|
I appreciate that, but I would want to just test for 0.7.2, which will always get the right answer for released software. |
|
That's fine too. I just used this because I don't really know how soon there will be a 0.7.2, and I thought some users might want this now. But I will gladly change it if that's what you want. |
|
So which would you prefer? It doesn't matter to me. Unlike with the previous PR, there aren't really any major SymPy functions that return sets or frozensets, so this probably isn't a huge deal to anyone actually using the SymPy extension with the notebook. |
|
Is there a test equivalent to |
|
Ah yes, of course. That just requires reordering the logic. |
|
Thanks, merging. |
Update SymPy profile: SymPy's latex() can now print set and frozenset
Update SymPy profile: SymPy's latex() can now print set and frozenset
I've included a version check against the latest version of SymPy that
supports it (the current development version, 0.7.1-git), so that users of old
versions of SymPy where this doesn't work will still have a good user
experience. This is a continuation of pull request #1399.