Re: [sage-devel] Re: Mechanism to choose NamedConvertMap as coercion map?

2017-12-18 Thread Jeroen Demeyer
On 2017-12-18 18:31, Simon King wrote: One way to answer the question whether a coercion from A to B exists is by implementing the method B._coerce_map_from_. Right, I was asking the question because I need to implement such a method for RIF and CIF. If that method returns "True" then the

Re: [sage-devel] Re: Running Sage from an IDE like PyCharm on Windows.

2017-12-18 Thread PHPirate
Thanks for the replies, so I would be very interested to run vim or emacs on Windows (although I have never heard of any windows user doing so) but since you both run a different OS you may not know how to set this up on Windows? I'll try in any case later on, I think I should open a separate

[sage-devel] Fwd: [IPython-dev] display of dicts?

2017-12-18 Thread William Stein
Relevant to recent discussion on sage-devel... Forwarded conversation Subject: [IPython-dev] display of dicts? From: Chris Barker Date: Mon, Dec 18, 2017 at 5:08 PM To: ipython-...@python.org As Guido has just declared that dicts will now

Re: [sage-devel] Re: Running Sage from an IDE like PyCharm on Windows.

2017-12-18 Thread Dima Pasechnik
On Monday, December 18, 2017 at 8:20:18 PM UTC, David Roe wrote: > > > > On Mon, Dec 18, 2017 at 8:55 AM, PHPirate > wrote: > >> Thanks, that sounds a bit too difficult for me though so I'll just stick >> to writing in PyCharm and try to execute my Sage files via the

Re: [sage-devel] Re: Running Sage from an IDE like PyCharm on Windows.

2017-12-18 Thread David Roe
On Mon, Dec 18, 2017 at 8:55 AM, PHPirate wrote: > Thanks, that sounds a bit too difficult for me though so I'll just stick > to writing in PyCharm and try to execute my Sage files via the Sage shell. > > But out of curiosity, am I the only one wanting to write scripts

Re: [sage-devel] Re: 8.2.beta0 Doctest error on tensorfield.py

2017-12-18 Thread Eric Gourgoulhon
Le lundi 18 décembre 2017 19:01:48 UTC+1, vdelecroix a écrit : > > This is fixed in > > https://trac.sagemath.org/ticket/24396 > > Thank you Vincent! And Eric you should be in copy of that ticket > > No, I wasn't: for some reason, I did not receive any notification from Trac for this

[sage-devel] Re: 8.2.beta0 Doctest error on tensorfield.py

2017-12-18 Thread Eric Gourgoulhon
Hi Simon, Le lundi 18 décembre 2017 18:37:14 UTC+1, Simon King a écrit : > > Hi Eric, > > On 2017-12-18, Eric Gourgoulhon > wrote: > > Le lundi 18 décembre 2017 15:58:30 UTC+1, Vincent Klein a écrit : > > I don't know what is the policy here: should all the lines that

[sage-devel] Re: Running Sage from an IDE like PyCharm on Windows.

2017-12-18 Thread PHPirate
Bit off-topic but yeah, that's the kind of IDE Sage needs :) (MMa was maybe not the best example, I use packages all the time if I need to collaborate) On Monday, December 18, 2017 at 6:40:58 PM UTC+1, Peter Luschny wrote: > > I do not like notebooks such as this one and Mathematica because

Re: [sage-devel] Re: 8.2.beta0 Doctest error on tensorfield.py

2017-12-18 Thread Vincent Delecroix
This is fixed in https://trac.sagemath.org/ticket/24396 And Eric you should be in copy of that ticket On 18/12/2017 15:26, Eric Gourgoulhon wrote: Hi, Le lundi 18 décembre 2017 15:58:30 UTC+1, Vincent Klein a écrit : Hi all, I get the following errors with a fresh 8.2.beta0 install

[sage-devel] Re: Running Sage from an IDE like PyCharm on Windows.

2017-12-18 Thread Peter Luschny
> > I do not like notebooks such as this one and Mathematica because they do > not go well with a VCS. > With Eclipse you have a powerful IDE for Mathematica. Called Wolfram Workbench. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To

[sage-devel] Re: 8.2.beta0 Doctest error on tensorfield.py

2017-12-18 Thread Simon King
Hi Eric, On 2017-12-18, Eric Gourgoulhon wrote: > Le lundi 18 décembre 2017 15:58:30 UTC+1, Vincent Klein a écrit : > I don't know what is the policy here: should all the lines that depend on > the one marked "# long time" be marked "# long time" as well, so that "sage

[sage-devel] Re: Mechanism to choose NamedConvertMap as coercion map?

2017-12-18 Thread Simon King
Hi Jeroen, On 2017-12-18, Jeroen Demeyer wrote: > Sage has NamedConvertMap to convert via special methods like > _real_mpfi_(). When looking for a conversion map, it first tries to find > a coercion map and then it checks for a default conversion map, ... > Why try to

Re: [sage-devel] Re: Running Sage from an IDE like PyCharm on Windows.

2017-12-18 Thread PHPirate
Thanks, that sounds a bit too difficult for me though so I'll just stick to writing in PyCharm and try to execute my Sage files via the Sage shell. But out of curiosity, am I the only one wanting to write scripts in Sage? Or are there other people using editors in the same way? On Monday,

Re: [sage-devel] Re: Running Sage from an IDE like PyCharm on Windows.

2017-12-18 Thread Erik Bray
On Mon, Dec 18, 2017 at 5:37 PM, PHPirate wrote: > Hm, it is at least worth a try (just saw your message on GH) Okay I can > understand if Sage has no syntax highlighting in any IDE on Windows, but as > the situation is now for me, is that there is no IDE in which you

Re: [sage-devel] Re: Running Sage from an IDE like PyCharm on Windows.

2017-12-18 Thread Erik Bray
On Mon, Dec 18, 2017 at 5:17 PM, Dima Pasechnik wrote: > > > On Monday, December 18, 2017 at 1:06:09 PM UTC, Erik Bray wrote: >> >> That sounds a bit bogus to me. I've never used PyCharm before and don't >> know how it works, but I suspect it could be made to work with

[sage-devel] Re: Running Sage from an IDE like PyCharm on Windows.

2017-12-18 Thread PHPirate
Hm, it is at least worth a try (just saw your message on GH) Okay I can understand if Sage has no syntax highlighting in any IDE on Windows, but as the situation is now for me, is that there is no IDE in which you can type Sage and then hit 'run' and then get Sage output. Now I think I could

[sage-devel] Re: Running Sage from an IDE like PyCharm on Windows.

2017-12-18 Thread Dima Pasechnik
On Monday, December 18, 2017 at 1:06:09 PM UTC, Erik Bray wrote: > > That sounds a bit bogus to me. I've never used PyCharm before and don't > know how it works, but I suspect it could be made to work with Cygwin's > Python. > PyCharm is a closed-source product that has a wizard to pick up

[sage-devel] Re: 8.2.beta0 Doctest error on tensorfield.py

2017-12-18 Thread Vincent Klein
Ok i have read --long instead of --warn-long. Thanks for your answer. Le lundi 18 décembre 2017 16:26:56 UTC+1, Eric Gourgoulhon a écrit : > > Hi, > > Le lundi 18 décembre 2017 15:58:30 UTC+1, Vincent Klein a écrit : >> >> Hi all, >> >> I get the following errors with a fresh 8.2.beta0 install

[sage-devel] Re: 8.2.beta0 Doctest error on tensorfield.py

2017-12-18 Thread Eric Gourgoulhon
Hi, Le lundi 18 décembre 2017 15:58:30 UTC+1, Vincent Klein a écrit : > > Hi all, > > I get the following errors with a fresh 8.2.beta0 install (after "make > distclean" "make"). > I have the sames errors on Ubuntu 14.04 and 16.04. > Traceback: > > sage -t --warn-long 17.5

[sage-devel] 8.2.beta0 Doctest error on tensorfield.py

2017-12-18 Thread Vincent Klein
Hi all, I get the following errors with a fresh 8.2.beta0 install (after "make distclean" "make"). I have the sames errors on Ubuntu 14.04 and 16.04. Traceback: sage -t --warn-long 17.5 src/sage/manifolds/differentiable/tensorfield.py # 3 doctests failed

[sage-devel] Mechanism to choose NamedConvertMap as coercion map?

2017-12-18 Thread Jeroen Demeyer
Hello, I'm working on coercion for interval fields (See Trac #24371) and there is one issue that I don't know how to solve elegantly: Sage has NamedConvertMap to convert via special methods like _real_mpfi_(). When looking for a conversion map, it first tries to find a coercion map and then

[sage-devel] Re: Running Sage from an IDE like PyCharm on Windows.

2017-12-18 Thread Erik Bray
That sounds a bit bogus to me. I've never used PyCharm before and don't know how it works, but I suspect it could be made to work with Cygwin's Python. It's pretty low-priority for me though. I don't see how using PyCharm to edit sage source code would be useful--it won't even do syntax

[sage-devel] Re: Meaning of edge_labels in canonical_label()

2017-12-18 Thread Dima Pasechnik
On Monday, December 18, 2017 at 10:40:56 AM UTC, Jori Mäntysalo wrote: > > Using edge_labels=True in canonical_label() of graph seems to work, i.e. > canonization transforms isomorphism to equality. Also the parameter does > *something*, it is not ignored. > I guess you get lexicographically

[sage-devel] Meaning of edge_labels in canonical_label()

2017-12-18 Thread Jori Mäntysalo
Using edge_labels=True in canonical_label() of graph seems to work, i.e. canonization transforms isomorphism to equality. Also the parameter does *something*, it is not ignored. But what is the meaning of it? For partition-parameter the meaning is clear (but not clearly documented). -- Jori

[sage-devel] blocker making patchbot fail

2017-12-18 Thread Ralf Stephan
Hello, The previously noticed blocker #24378 is in review but https://trac.sagemath.org/ticket/24284 is now coming up frequently too so I changed its priority. Please review. Regards, -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To