Re: [sage-support] How to go from .sage to .pyc?

2019-10-16 Thread henri.gir...@gmail.com
Use jupyterlab and hide code Le 16/10/2019 à 21:37, Dima Pasechnik a écrit : On Wed, 16 Oct 2019, 20:09 pong, > wrote: That's exactly what I want (hiding sources codes from users). I'm teaching a class where the students need to implement some algorith

Re: [sage-support] How to go from .sage to .pyc?

2019-10-16 Thread Dima Pasechnik
On Wed, 16 Oct 2019, 20:09 pong, wrote: > That's exactly what I want (hiding sources codes from users). > > I'm teaching a class where the students need to implement some algorithms > on graphs but I would like to distribute those functions in advance so that > they can play with it and see what'

Re: [sage-support] How to go from .sage to .pyc?

2019-10-16 Thread pong
That's exactly what I want (hiding sources codes from users). I'm teaching a class where the students need to implement some algorithms on graphs but I would like to distribute those functions in advance so that they can play with it and see what's the expected output before writing their owns

Re: [sage-support] How to go from .sage to .pyc?

2019-10-16 Thread Dima Pasechnik
On Wed, Oct 16, 2019 at 6:18 PM pong wrote: > > I have a bunch of old scripts in .sage files. They were compiled into .pyc > files years ago. *.sage files are preparsed by sage preparser, and converted into *.py files. Conversion into *.pyc files is done automatically, as *.py files are loaded i

[sage-support] How to go from .sage to .pyc?

2019-10-16 Thread pong
I have a bunch of old scripts in .sage files. They were compiled into .pyc files years ago. Unfortunately, I only remember that I ran sage --preparse on the .sage files and got them into .py files but forgot what next. I tried import py_compile in sage then ran py_compile.compile('xxx.py') whi

[sage-support] Re: [GAP Forum] GAP to MATLAB?

2019-10-16 Thread David Joyner
Ignore my post. It went to the wrong email list. Sorry. On Wed, Oct 16, 2019 at 8:23 AM David Joyner wrote: > > > On Wed, Oct 16, 2019, 8:06 AM Iverson, Joseph W [MATH] > wrote: > >> Dear GAP forum, >> >> Does anybody know of a way to efficiently get matrices (say with >> cyclotomic entries) fr

[sage-support] Re: [GAP Forum] GAP to MATLAB?

2019-10-16 Thread David Joyner
On Wed, Oct 16, 2019, 8:06 AM Iverson, Joseph W [MATH] wrote: > Dear GAP forum, > > Does anybody know of a way to efficiently get matrices (say with > cyclotomic entries) from GAP to MATLAB? For instance, is there a package to > export matrices as .mat files? > Suggested reply: One way to do th