Re: [sage-devel] drop python2 compatibility in 9.1 ?

2020-01-05 Thread TAU
On Sun, 5 Jan 2020, Frédéric Chapoton wrote: > Do you agree that sage release 9.1 (and most of the 9.1.betas) will not be > kept compatible with Python 2 ? I agree. -- Jori Mäntysalo Tampereen yliopisto - Ihminen ratkaisee -- You received this message because you are subscribed to the Google

Re: [sage-devel] Re: SageNB broken because of stmp???

2019-11-23 Thread TAU
On Sat, 23 Nov 2019, Frédéric Chapoton wrote: > The current stumbling point is that sagenb uses twisted and twisted is not > py3 compatible, despite pretending to be so. OK. I opened #28792 for better error message. Also I suppose we must change documentation. -- Jori Mäntysalo Tampereen ylio

[sage-devel] SageNB broken because of stmp???

2019-11-23 Thread TAU
I did a fresh install, i.e. start from git clone git://github.com/sagemath/sage.git and so on. Sage starts and I can start jupyter also. However ./sage --notebook=sagenb says DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative

[sage-devel] Sphinx and links

2019-10-07 Thread TAU
I opened https://trac.sagemath.org/ticket/28569 thinking it is something easy. Is not for me. Someone understanding Sphinx should take a look. -- Jori Mäntysalo Tampereen yliopisto - Ihminen ratkaisee -- You received this message because you are subscribed to the Google Groups "sage-devel" g

[sage-devel] refering, recommented, registred and other typos

2019-08-08 Thread TAU
Might be of interest to someone painting a bikeshed. I played a little with Levenshtein module. $ egrep --no-filename -R -o -w '[a-z]{4,15}' src/sage > /tmp/all $ cat /tmp/all | sort | uniq -c | fgrep -w 1 | colrm 1 8 > /tmp/singles $ cat /tmp/all | sort | uniq -c | fgrep -v -w 1 | colrm 1 8 > /t

Re: [sage-devel] Re: how does the res/mod in "geng" work?

2019-03-25 Thread TAU
Btw, what is most simple way in SageMath to run parallel independent jobs without dependencies? For example, let G() be a generator outputting 1000 objects and let there be four cpu cores available. Now it would be nice if we could just fork four processes, each basically saying for example "Ge

Re: [sage-devel] Re: how does the res/mod in "geng" work?

2019-03-24 Thread TAU
On Sun, 24 Mar 2019, Nico Van Cleemput wrote: > If you use the normal splitting with geng, it might become more even if you > go to a higher number of > parts. However, it will never be completely even. We could also use geng to split output to for example 100 parts and then combine parts so th

Re: [sage-devel] Re: Suggestion to speed up nauty_geng()?

2019-03-22 Thread TAU
On Fri, 22 Mar 2019, Ai Bo wrote: > With 12, I can't write to a file, it is at least 1500G. I can write to a > file up to around 300G at most. > That is why I am thinking how to divide the output of "geng 12".   So > far, I don't have any idea. Any suggestion? You can (and should) use A/B -not

Re: [sage-devel] Re: Suggestion to speed up nauty_geng()?

2019-03-22 Thread TAU
On Thu, 21 Mar 2019, Simon King wrote: > Does either of you plan to open a ticket and make the functionality > available, that according to Jori is present in nauty but according > to Ai isn't wrapped in Sage? At least I do not. -- Jori Mäntysalo Tampereen yliopisto - Ihminen ratkaisee -- Yo

Re: [sage-devel] Re: Suggestion to speed up nauty_geng()?

2019-03-22 Thread TAU
OK, more explanation. * * * First I compare time for generating graphs in Nauty and in Sage. As plain graphs(n) uses nauty, I have test.sage containing print(sum(1 for _ in graphs(9))) It takes about 11½ seconds to run. I tested this with time ./sage test.sage Then, ./local/bin/geng 9 > /

Re: [sage-devel] Suggestion to speed up nauty_geng()?

2019-03-20 Thread TAU
On Thu, 21 Mar 2019, Ai Bo wrote: > Is there a way to "random access"? For example, access the nth element > in the "generator", instead of one by one? Kind of. As a most time is propably spent by creating Python data structures for SageMath, you can use nautygen directly to generate huge numb

Re: [sage-devel] short python3 report (March of the last python2 year)

2019-03-03 Thread TAU
On Sun, 3 Mar 2019, Frédéric Chapoton wrote: > In sage 8.7.b6 built with python3, there are now 464 failing doctests, in a > total of 137 files. You forgot to say that this is great progress -- and we should thank you for a big part of this! It also seems that in py3 the testing framework does

[sage-devel] Py2 vs. Py3 and random functions

2019-02-26 Thread TAU
Is this a known feature? ...~/sage$ ./sage -c 'set_random_seed(0); print(randint(1, 10^6))' 111440 ...~/sage3$ ./sage -c 'set_random_seed(0); print(randint(1, 10^6))' 116853 -- Jori Mäntysalo Tampereen yliopisto - Ihminen ratkaisee -- You received this message because you are subscribed to t

Re: [sage-devel] Re: Counting integer compositions with restrictions

2019-02-21 Thread TAU
On Tue, 19 Feb 2019, TB wrote: > There is the cardinality method of IntegerVectors. Note that the default for > min_part is 0. So this could be used for...? I do not know the area. I was just playing with numbers (original question was "In how many ways you can arrange a queue of 9 men and 7 w

[sage-devel] Counting integer compositions with restrictions

2019-02-19 Thread TAU
Is there a fast way to compute for example Compositions(15, min_length=10, max_length=10).cardinality() in some package already integrated to SageMath? For Partitions(...) that seems to be the case, but Compositions(...) uses just brute enumeration. -- Jori Mäntysalo Tampereen yliopisto - Ihm

[sage-devel] SageNB and Firefox

2019-02-06 Thread TAU
(I know, I know... SageNB is deprecated.) In the newest firefox in Linux pressing backspace in an empty cell does not delete the input cell. It works in Chromium. Why that, any workaround on the server side? -- Jori Mäntysalo Tampereen yliopisto - Ihminen ratkaisee -- You received this mess

Re: [sage-devel] different graph canonical labels bliss vs Sage (was: doctest failures in databases/sql_db.py)

2019-01-02 Thread TAU
On Wed, 2 Jan 2019, Vincent Delecroix wrote: > I thought that the definition of the canonical labels was the > order on vertices that minimize the adjacency matrix in > lexicographic order... ?? Any function that translates isomorphism to equality is a canonical labeling. -- Jori Mäntysalo Ta