#20388: Fix the Magma interface to work with remote installations
-------------------------------------+-------------------------------------
Reporter: mmasdeu | Owner:
Type: defect | Status: needs_review
Priority: major | Milestone: sage-7.2
Component: interfaces: | Resolution:
optional | Merged in:
Keywords: magma, remote | Reviewers:
Authors: Marc Masdeu | Work issues:
Report Upstream: N/A | Commit:
Branch: u/mmasdeu/20388 | da0c8a128c83b89f9cc6f42b3dfcdcac3f8fce24
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by mmasdeu):
1) Some users may not be familiar with environment variables.
2) I like to be able to write Sage scripts that work after you start sage.
Using environment variables forces you to remember always to set them
before you start your script, which can be annoying.
3) The environment variable approach doesn't allow the user to compare the
result of executing a function with two different Magma installations.
Something like this would be desiderable.
{{{
sage: E = EllipticCurve('37a1')
sage: set_magma_session(Magma(command = 'magma_2-18'))
sage: E.analytic_rank(algorithm = 'magma')
0
sage: set_magma_session(Magma(command = 'magma_2-19'))
sage: E.analytic_rank(algorithm = 'magma')
0
}}}
4) I don't understand your first comment. If people has taken Sage code
that uses Magma and now Sage adds more functionality, then they can either
use the old functionality or adapt the code to the new (and better way),
right?
Here is what I propose: add the environment variables (which make sense
the moment there is a magma = Magma() line in there...), but also change
the functions using magma to use the get_magma_session() function. How
reasonable is this?
--
Ticket URL: <http://trac.sagemath.org/ticket/20388#comment:12>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" 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-trac.
For more options, visit https://groups.google.com/d/optout.