Hello,
I use cocalc and the new "image" (sagemath 8.3,...).
In a worksheet my usual first cell is :
#%hide
import sys
sys.path.append('./modules')
import DrawingConstants as dc
%load ./modules/RationalTrigonometry.sage
%load ./modules/EuclideanGeometry.sage
%load ./modules/InversiveGeometry.sage
%load ./modules/PinwheelGeometry.sage
%load ./modules/TrilinearCoordinates.sage
%load ./modules/MatrixRepresentationConics.sage
%load ./modules/Arithmetic.sage
# Alias from dc module
[nd] = [dc.nd]
[c0,c1,c2,c3,c4,c5,c6,c7,c8] =
[dc.c0,dc.c1,dc.c2,dc.c3,dc.c4,dc.c5,dc.c6,dc.c7,dc.c8]
[ls] = [dc.ls]
[th1,th2,th3,th4] = [dc.th1,dc.th2,dc.th3,dc.th4]
[fs1,fs2,fs3,fs4,fs5] = [dc.fs1,dc.fs2,dc.fs3,dc.fs4,dc.fs5]
The goal of this cell is to import python code (DrawingConstants.pyc) and
to "load" (pre-process) files suffixed with .sage.
Since I use the new "image" in cocalc (last saturday), I get this warning
(only when starting or restarting the worksheet, and the first Run) and I
assume it is is an "upgrade" plus deprecation from sagemath 8.3 (that's why
I post here and not on google cocalc group...but I am not sure, because of
the salvus namespace reference) :
/cocalc/lib/python2.7/site-packages/smc_sagews/sage_salvus.py:3537:
DeprecationWarning: Importing load from here is deprecated. If you need to
use it, please import it directly from sage.misc.persist See
https://trac.sagemath.org/25153 for details. exec 'salvus.namespace["%s"] =
sage.structure.sage_object.load(*__args, **__kwds)'%t in salvus.namespace,
{'__args':other_args, '__kwds':kwds}
The warning appears even with only the first two lines ... I guess "import
sys" is deprecated, but "import sage.misc.persist.sys" fails.
I read the trac web page..but sorry, I don't know how to code differently :
how to "import it directly" ?
Dominique.
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.