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

2019-03-21 Thread John H Palmieri
On Thursday, March 21, 2019 at 10:06:26 PM UTC-7, Ai Bo wrote: > > Sorry for not being clear. > I meant I used geng —help. > Apparently, the equal divide doesn’t help in my example case. > Where is this geng.c file? If I modify geng.c, how should I build geng? > It's part of nauty. > On

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

2019-03-21 Thread Ai Bo
Sorry for not being clear. I meant I used geng —help. Apparently, the equal divide doesn’t help in my example case. Where is this geng.c file? If I modify geng.c, how should I build geng? On Thu, Mar 21, 2019 at 9:58 PM John H Palmieri wrote: > > > On Thursday, March 21, 2019 at 9:38:03 PM

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

2019-03-21 Thread John H Palmieri
On Thursday, March 21, 2019 at 9:38:03 PM UTC-7, Ai Bo wrote: > > Saw this in the document: > res/mod : only generate subset res out of subsets 0..mod-1 > It would help if you gave some context for this. I'm guessing that most Sage users won't know what "geng" is. I certainly didn't. I found

[sage-devel] Re: [sage-cell] Re: Is sagecell python3-ready?

2019-03-21 Thread Kwankyu Lee
On Friday, March 22, 2019 at 12:56:58 AM UTC+9, Andrey Novoseltsev wrote: > > "languages" for SageMathCell are very different from kernels for Jupyter. > SageMathCell keeps a bunch of preforked kernels (all are the same) > And a new kernel is created for each interact cell. Right? This seems

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

2019-03-21 Thread Ai Bo
Saw this in the document: res/mod : only generate subset res out of subsets 0..mod-1 How is the output divided? I tried with : ../sage-8.6/local/bin/geng 6 -C 0/7 and then I iterated from 0/7, 1/7, 2/7, 3/7 Why the output is 27, 21, 7, 1, 0, 0, ... How is the subset generated? Thank you.

[sage-devel] Re: [sage-cell] Re: Is sagecell python3-ready?

2019-03-21 Thread Andrey Novoseltsev
When I was actively using SageMathCell for teaching, I indeed got quite irritated that things that used to work during preparation did not work in class because of some recent changes. My eventual solution was to run my own server, where no changes were ever unexpected and in general I had

[sage-devel] Re: [sage-cell] Re: Is sagecell python3-ready?

2019-03-21 Thread Nils Bruin
On Thursday, March 21, 2019 at 8:56:58 AM UTC-7, Andrey Novoseltsev wrote: > > "languages" for SageMathCell are very different from kernels for Jupyter. > SageMathCell keeps a bunch of preforked kernels (all are the same), so that > new computations don't have to wait for startup. "language"

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

2019-03-21 Thread Dima Pasechnik
On Thu, 21 Mar 2019 18:42 Ai Bo, wrote: > I found it. Thank you. > I also tried the command listed above. > I am confused. Where is this "I]~~w"? > This is a particular way to encode graph as a string of characters (8 bits per character). Read Sage docs on Graph for details. Is it a file?

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

2019-03-21 Thread Ai Bo
I found it. Thank you. I also tried the command listed above. I am confused. Where is this "I]~~w"? Is it a file? How did Graph load this? In my program, my code looks like this: i=12 for G in graphs.nauty_geng(str(i) + " -C"): q = True for j in range (0,i): S

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

2019-03-21 Thread Ai Bo
I found it. Thank you. I also tried the command listed above. I am confused. Where is this "I]~~w"? Is it a file? How did Graph load this? In my program, my code looks like this: i=12 for G in graphs.nauty_geng(str(i) + " -C"): q = True for j in range (0,i): S

Re: [sage-devel] The future of the Mac Application on Mojave

2019-03-21 Thread Dima Pasechnik
On Wed, 20 Mar 2019 14:08 Ivan Andrus, wrote: > On Mar 19, 2019, at 4:01 AM, dimp...@gmail.com wrote: > > > Hi Ivan, > thanks for looking into this. > On Mon, Mar 18, 2019 at 06:25:53PM -0700, Ivan Andrus wrote: > > I haven't worked on Sage for quite a while, but it was brought to my > attention

[sage-devel] Re: [sage-cell] Re: Is sagecell python3-ready?

2019-03-21 Thread Andrey Novoseltsev
"languages" for SageMathCell are very different from kernels for Jupyter. SageMathCell keeps a bunch of preforked kernels (all are the same), so that new computations don't have to wait for startup. "language" just turns "code" into something like "print octave.eval(code)", which is then sent

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

2019-03-21 Thread Dima Pasechnik
On Thu, Mar 21, 2019 at 3:03 PM Ai Bo wrote: > is this "nauty26r7/geng" a program available? geng is installed in local/bin/ sub-directory of your Sage installation, as a part of Sage's standard package nauty. > Also, as Python is slow, any part of the nautygen can be written in other >

[sage-devel] Re: [sage-cell] Re: Is sagecell python3-ready?

2019-03-21 Thread Nils Bruin
One thing that comes to mind beyond/independent of preparser tricks (which can be hard to make robust): sagecell already has a lot of "languages". Would it be possible to have sage-py2 and sage-py3 as languages? We could then start out having "sage" as an alias to sage-py2. At some point we can

[sage-devel] Fwd: [sage-cell] Re: Is sagecell python3-ready?

2019-03-21 Thread kcrisman
On sage-cell, Py3 was brought up. I mentioned how permalinks there may cause trouble at the eventual Py3 changeover for Sage, since at the very least print statements will be gone. William brings up an interesting possibility, and I wonder how/whether this would be useful for Sage proper. A

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

2019-03-21 Thread Ai Bo
Another question: If I use nautygen and generate huge number of graph, how do I load into sage? Because in my for loop, I also use other functions such as Sandpile on the graph generated by nautygen. Thanks, On Wed, Mar 20, 2019 at 11:48 PM Jori Mäntysalo (TAU) < jori.mantys...@tuni.fi> wrote:

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

2019-03-21 Thread Ai Bo
is this "nauty26r7/geng" a program available? Also, as Python is slow, any part of the nautygen can be written in other language, such as C/C++? Thanks, Laura On Wednesday, March 20, 2019 at 11:48:38 PM UTC-7, Jori Mäntysalo (TAU) wrote: > > On Thu, 21 Mar 2019, Ai Bo wrote: > > > Is there a

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

2019-03-21 Thread Simon King
Hi! 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? Best regards, Simon On 2019-03-21, Jori Mäntysalo wrote: > On Thu, 21 Mar 2019, Ai Bo wrote: > >> Is there a way to "random

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

2019-03-21 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