Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Of course that -- after finding the sage-run executable as in the above comment -- the solution was simple.

After commenting the obstacle if block in the /usr/bin/sage-run file as here:

# if fn.startswith('-'):
#     print("sage-run received unknown option: {}".format(fn))
#     print("usage: sage [options]")
#     print("Try 'sage -h' for more information.")
#     sys.exit(1)

the following sample program was working in eclipse with the eclipse-python-project-interpreter pointing to /usr/bin/sage

# inside eclipse started from a terminal, where previously sage -sh was typed
from sage.all import *    

E = EllipticCurve( GF(2017), [1,0,0,0,1] )

print E.order()
print E.random_point()

This gave in the eclipse console:

2011
(1551 : 114 : 1)

And the eclipse method extension worked immediately after typing EllipticC .

Although for the random_ there was no proposal (in time).

This works for me, so i'll validate the post - if no complains arrive next days.