Hello,here is a small report on the slow progress towards python3-compatibility for sage.Sage is already building and starting with python3 since some time already. It is explained in https://trac.sagemath.org/ticket/15530 how to get a python3-sage. One can note an even longer startup time (sigh).There has been recent progress on the pexpect interfaces and lib interfaces, so this sage3 is now somewhat usable. Try it !
Our next goal is to get the documentation build. After that, one will have to make all doctest pass, but we are still a long way from that.Another interesting step would be to be able to launch the jupyter notebook with sage3. Currently, it looks for the sage kernel in the python2 library (no ticket yet).
Currently, if I run the script $SAGE_LOCAL/bin/sage in my normal environment (where SAGE_ROOT is not set) then I get:Error: You must set the SAGE_ROOT environment variable or run this
script from the SAGE_ROOT or SAGE_ROOT/local/bin/ directory.
Error setting environment variables by sourcing '/usr/local/sage/sage-git/local/bin/sage-env';
possibly contact sage-devel (see http://groups.google.com/group/sage-devel).If instead I run the script $SAGE_ROOT/sage a value for SAGE_ROOT is figured out and everything works fine when called from my normal environment.
I'm grabbing the opportunity to recall that , whereas I have installed the Sage kernel in my (systemwide) jupyter installation via the suitable "jupyter kernelspec install ..." invocation), when I try to use it from the systemwide jupyter via the "normal" invocation "jupyter notebook", it complains of SAGE_ROOT being undefined and does not lauch Sage. OTOH, if I invoke "SAGE_ROOT=<whatever> jupyter notebook", all is fine and dandy. My $SAGE_ROOT/sage script is symlinked to /usr/local/bin/, which is on my $PATH.Suggestions ?
On Thursday, May 31, 2018 at 4:52:04 AM UTC-7, Emmanuel Charpentier wrote:I'm grabbing the opportunity to recall that , whereas I have installed the Sage kernel in my (systemwide) jupyter installation via the suitable "jupyter kernelspec install ..." invocation), when I try to use it from the systemwide jupyter via the "normal" invocation "jupyter notebook", it complains of SAGE_ROOT being undefined and does not lauch Sage. OTOH, if I invoke "SAGE_ROOT=<whatever> jupyter notebook", all is fine and dandy. My $SAGE_ROOT/sage script is symlinked to /usr/local/bin/, which is on my $PATH.Suggestions ?Yes, that is very close to my usage scenario as well (as an aside: "jupyter kernelspec install" on the sage kernel involved COPYING all the sage documentation into the kernelspec directory. In most scenarios symlinking it is more appropriate (that's how sage installs its kernel in its own kernel)
If you are placing your kernel.json outside of the sage installation anyway, you can edit the relevant "kernel.json" to refer to "sage" rather than the hard path to $SAGE_LOCAL/bin/sage that is there presently. The changes we are discussing here would avoid having to make that edit.