Re: [sage-devel] Re: possibly controversial question: "Can I create commercial software using SageMath?"

2016-08-19 Thread William Stein
On Fri, Aug 19, 2016 at 10:08 AM, Robert Dodier wrote: > On 2016-08-17, William Stein wrote: > >> If you write a program that genuinely uses the Sage library in a >> nontrivial way, then that program is a derived work of Sage > > Well, if there is any controversy here, it must be this statement.

[sage-devel] Re: TypeError: is not hashable and does not implement _cache_key()

2016-08-19 Thread Joseph Hundley
Dear Nils, Thanks very much for your detailed and thoughtful reply. Best, Joe On Friday, August 19, 2016 at 5:37:21 PM UTC-4, Nils Bruin wrote: > > On Friday, August 19, 2016 at 1:43:30 PM UTC-7, Joseph Hundley wrote: >> >> There are two reasons I was planning to have AbstractAlgebraicGroup

[sage-devel] Re: possibly controversial question: "Can I create commercial software using SageMath?"

2016-08-19 Thread Robert Dodier
On 2016-08-17, William Stein wrote: > If you write a program that genuinely uses the Sage library in a > nontrivial way, then that program is a derived work of Sage Well, if there is any controversy here, it must be this statement. The question of what constitutes a derived work is subtle and co

Re: [sage-devel] Re: ExpressionNice

2016-08-19 Thread Bill Page
On 19 August 2016 at 14:24, Nils Bruin wrote: > On Friday, August 19, 2016 at 9:45:12 AM UTC-7, Bill Page wrote: >> >> My main question is whether we should try to replicate what is done >> by ExpressionNice and thereby render it obsolete or should we try >> to reach some other compromise? > > Wel

[sage-devel] Re: TypeError: is not hashable and does not implement _cache_key()

2016-08-19 Thread Nils Bruin
On Friday, August 19, 2016 at 1:43:30 PM UTC-7, Joseph Hundley wrote: > > There are two reasons I was planning to have AbstractAlgebraicGroup be > UniqueRepresentation > (1) The passage in this tutorial > > which > r

[sage-devel] Re: TypeError: is not hashable and does not implement _cache_key()

2016-08-19 Thread Joseph Hundley
There are two reasons I was planning to have AbstractAlgebraicGroup be UniqueRepresentation (1) The passage in this tutorial which reads You are encouraged to *make your parent “unique”*. That’s to say, parents sh

[sage-devel] Re: TypeError: is not hashable and does not implement _cache_key()

2016-08-19 Thread Nils Bruin
On Friday, August 19, 2016 at 11:20:44 AM UTC-7, Joseph Hundley wrote: > > Context: I am playing around with implementing abstract algebraic groups > which are recovered from based root data. > So, one should eventually be able to say > b = BasedRootDatum( suitable input ) > g = AbstractAlgebraic

Re: [sage-devel] Re: ExpressionNice

2016-08-19 Thread Nils Bruin
On Friday, August 19, 2016 at 9:45:12 AM UTC-7, Bill Page wrote: > > On the contrary after reading the code for ExpressionNice carefully it > is clear that it does not do post-processing as such class ExpressionNice(Expression): def _repr_(self): d = self._pare

Re: [sage-devel] Quickest way to find a class definition?

2016-08-19 Thread Joseph Hundley
Awesome! Thanks! On Friday, August 19, 2016 at 2:07:07 PM UTC-4, vdelecroix wrote: > > sage: import_statements(Permutation) > from sage.combinat.permutation import Permutation > > And if there is an ambiguity it does show up > > sage: import_statements('ZZ') > # **Warning**: distinct objects w

[sage-devel] TypeError: is not hashable and does not implement _cache_key()

2016-08-19 Thread Joseph Hundley
Context: I am playing around with implementing abstract algebraic groups which are recovered from based root data. So, one should eventually be able to say b = BasedRootDatum( suitable input ) g = AbstractAlgebraicGroup( b ) Running into an issue which seems to be triggered by the passing of a BR

[sage-devel] Re: cayley_table display formatting incorrect

2016-08-19 Thread ciric50
I think you're right. I used my browser developer tools to get the latex source for the table from the screen, and pasted that into a simple latex document in Texmaker. The table displayed without any problem. I found one entry in the MathJax Users forum that claims MathJax does not support mul

Re: [sage-devel] Quickest way to find a class definition?

2016-08-19 Thread Vincent Delecroix
sage: import_statements(Permutation) from sage.combinat.permutation import Permutation And if there is an ambiguity it does show up sage: import_statements('ZZ') # **Warning**: distinct objects with name 'ZZ' in: # - sage.rings.integer_ring # - sage.libs.ntl.ntl_ZZ from sage.rings.integer_ri

[sage-devel] Quickest way to find a class definition?

2016-08-19 Thread Joseph Hundley
Hi, Suppose I have something which I know I need to import and have forgotten where it's found. What is the best way to recover that information? The best method I know is to type ??ThingIWantToImport and scroll and scroll and scroll until at the very end it tells me which file I want. Is ther

[sage-devel] Joint Mathematics Meetings relevant MAA sessions

2016-08-19 Thread kcrisman
Deadline is a just a month away for submitting abstracts! http://jointmathematicsmeetings.org/meetings/national/jmm2017/2180_maacall Here are some relevant sessions to Sage educational folks you may want to submit to - among others! (Reply to sage-edu if you have any comments.) Mathematical

Re: [sage-devel] Re: ExpressionNice

2016-08-19 Thread Bill Page
On the contrary after reading the code for ExpressionNice carefully it is clear that it does not do post-processing as such and should be quite general and robust. However that said, I am very much in favor of using the approach you demonstrated in https://trac.sagemath.org/ticket/21286 My main

[sage-devel] Re: error compiling ntl in sage 7.3.beta8

2016-08-19 Thread chris wuthrich
The original problem in this thread was resolved, but then there were other problems with compiling sage 7.3 on CentOS6.8. I decided to install the devtools and it worked fine. Maybe somewhere in the installation guidelines, one could add that for CentOS it is recommended to install devtoolset

[sage-devel] Re: cayley_table display formatting incorrect

2016-08-19 Thread Dima Pasechnik
IMHO MathJax does not support \mutilcolumn. (the previous incarnation of formula display stuff, what was it called, did work, I suppose) On Friday, August 19, 2016 at 4:11:02 PM UTC+1, cir...@gmail.com wrote: > > When I display a Cayley table in a notebook with the Typeset checkbox > checked,

[sage-devel] cayley_table display formatting incorrect

2016-08-19 Thread ciric50
When I display a Cayley table in a notebook with the Typeset checkbox checked, the table displays certain latex commands rather than using them as formatting. Works fine without the Typeset checkbox.

Re: [sage-devel] Re: Logging and optional tests

2016-08-19 Thread Erik Bray
On Wed, Aug 17, 2016 at 11:30 AM, Simon King wrote: > On 2016-08-17, Erik Bray wrote: >> Off the top of my head I don't know specifically what you're looking >> to do though; something more concrete would be helpful. > > The computation of the cohomology ring of a group G with coefficients in > G

Re: [sage-devel] Re: error installing top com

2016-08-19 Thread James Khan
Hi! This is awesome! thanks so much! That seemed to be the problem! It's fixed now! Thanks!! J. On Fri, Aug 19, 2016 at 8:45 AM, leif wrote: > Jeroen Demeyer wrote: > > On 2016-08-19 04:16, James Khan wrote: > >> Hi! > >> > >> Many thanks for your message and kind help. > >> > >> I am runnin

Re: [sage-devel] Re: patchbot.sagemath.org down?

2016-08-19 Thread Eric Gourgoulhon
Hi, For the record, I also could not reach patchbot.sagemath.org this morning with Firefox 48.0 (under Ubuntu 16.04.1), with an error saying something like "this page cannot be displayed by Firefox because it has some security issue..." Now, it is OK. Thanks for having the pathbot back! Best

[sage-devel] Report on patchbot.sagemath.org migration

2016-08-19 Thread Thierry
Hi, here is a report on patchbot migration. Previous state: - minor OS-related issues (apparently specific to CentOS): - Readahead for the filesystem hosting the db was set to 4096KB by default, while mongodb recommends at most 256KB. This was temporarly fixed by blockdev, until

Re: [sage-devel] Re: How to check if package is up-to-date?

2016-08-19 Thread Jeroen Demeyer
On 2016-08-19 12:34, Simon King wrote: *unless* the user has somehow installed an old version manually Or *unless* the build has not finished yet, which is my use case. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this gr

Re: [sage-devel] Re: patchbot.sagemath.org down?

2016-08-19 Thread Thierry
On Fri, Aug 19, 2016 at 12:06:08PM +0200, Jeroen Demeyer wrote: > On 2016-08-19 12:02, Thierry wrote: > >Hi, > > > >nginx is configured to use http2, which is the successor of spdy. I > >removed it, is it better ? > > Yes, it works now both from Firefox and Chromium. I don't know if the > problem

[sage-devel] Re: How to check if package is up-to-date?

2016-08-19 Thread Simon King
Hey! On 2016-08-19, leif wrote: > Jeroen Demeyer wrote: >> What is the recommended way to check if the latest version of a given >> Sage package is installed? The function is_package_installed() only >> checks whether *some* version of the package is installed, which might >> not be the latest ve

Re: [sage-devel] Re: patchbot.sagemath.org down?

2016-08-19 Thread Jeroen Demeyer
Looking at how sage4 runs now, it looks like it is getting an outdated ticket list somehow. First of all, it doesn't see any ticket numbers above #21184. And it thinks that #12866 has positive_review, while in reality it is closed: [2016-08-19 10:16:06] #12866: start rating rating 0 after a

Re: [sage-devel] Re: patchbot.sagemath.org down?

2016-08-19 Thread Jeroen Demeyer
On 2016-08-19 12:02, Thierry wrote: Hi, nginx is configured to use http2, which is the successor of spdy. I removed it, is it better ? Yes, it works now both from Firefox and Chromium. I don't know if the problem was client-side or server-side but at least it works now. Thanks, Jeroen. --

Re: [sage-devel] Re: patchbot.sagemath.org down?

2016-08-19 Thread Thierry
Hi, nginx is configured to use http2, which is the successor of spdy. I removed it, is it better ? Ciao, Thierry On Fri, Aug 19, 2016 at 11:52:40AM +0200, Jeroen Demeyer wrote: > There seem to be some problems, possibly related to SSL. My firefox browser > just shows a blank page for https://p

Re: [sage-devel] Re: patchbot.sagemath.org down?

2016-08-19 Thread Jeroen Demeyer
There seem to be some problems, possibly related to SSL. My firefox browser just shows a blank page for https://patchbot.sagemath.org (not even an error message) Chromium gives an error page with This site can’t be reached The web page at https://patchbot.sagemath.org/ticket/21288/ might be

[sage-devel] Re: How to check if package is up-to-date?

2016-08-19 Thread leif
Jeroen Demeyer wrote: > Hello, > > What is the recommended way to check if the latest version of a given > Sage package is installed? The function is_package_installed() only > checks whether *some* version of the package is installed, which might > not be the latest version. The "recommended" wa

[sage-devel] Re: Dealing with libc math differences

2016-08-19 Thread Erik Bray
On Fri, Aug 19, 2016 at 11:00 AM, Erik Bray wrote: > On Wed, Aug 10, 2016 at 1:38 PM, Erik Bray wrote: >> Hi all, >> >> Sorry if this has been discussed ad-infinitum before--I looked around >> a bit but didn't find a definitive answer. >> >> I have one (well at least one) test that's failing on C

[sage-devel] Re: Dealing with libc math differences

2016-08-19 Thread Erik Bray
On Wed, Aug 10, 2016 at 1:38 PM, Erik Bray wrote: > Hi all, > > Sorry if this has been discussed ad-infinitum before--I looked around > a bit but didn't find a definitive answer. > > I have one (well at least one) test that's failing on Cygwin due to > tiny difference in the last digit of the resu

Re: [sage-devel] spamming patchbot sage4

2016-08-19 Thread Jeroen Demeyer
I created a ticket: https://trac.sagemath.org/ticket/21288 -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this

[sage-devel] How to check if package is up-to-date?

2016-08-19 Thread Jeroen Demeyer
Hello, What is the recommended way to check if the latest version of a given Sage package is installed? The function is_package_installed() only checks whether *some* version of the package is installed, which might not be the latest version. Jeroen. -- You received this message because you

Re: [sage-devel] spamming patchbot sage4

2016-08-19 Thread Thierry
Hi, i personally had the exact same issue. I solved it by removing the file $SAGE_ROOT/local/var/lib/sage/installed/bliss-0.73 and restart the compilation. Ciao, Thierry On Fri, Aug 19, 2016 at 10:05:18AM +0200, Jeroen Demeyer wrote: > On 2016-08-19 08:37, Ralf Stephan wrote: > >The sag

Re: [sage-devel] spamming patchbot sage4

2016-08-19 Thread Jeroen Demeyer
On 2016-08-19 08:37, Ralf Stephan wrote: The sage4 patchbot spams BuildFailed because of Fatal error: bliss/graph.hh: No such file or directory [sagelib-7.4.beta1] #include "bliss/graph.hh" It seems that bliss is not installed, but Sage thinks that it is installed. I wonder what could cause

[sage-devel] Re: error installing top com

2016-08-19 Thread leif
Jeroen Demeyer wrote: > On 2016-08-19 04:16, James Khan wrote: >> Hi! >> >> Many thanks for your message and kind help. >> >> I am running virtual machine on windows 7 and the sage 7.3 link is not >> ready yet (the source code is there but not the sage-7.3.ova) so I am >> stuck with 7.2 for the tim