Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a method to reach lmfdb webpage of elliptic curves over Q #21533

Closed
fchapoton opened this issue Sep 18, 2016 · 14 comments
Closed

add a method to reach lmfdb webpage of elliptic curves over Q #21533

fchapoton opened this issue Sep 18, 2016 · 14 comments

Comments

@fchapoton
Copy link
Contributor

as suggested in #18968

CC: @JohnCremona @kedlaya @sagetrac-tmonteil

Component: elliptic curves

Author: Frédéric Chapoton

Branch/Commit: 2020242

Reviewer: John Cremona

Issue created by migration from https://trac.sagemath.org/ticket/21533

@fchapoton
Copy link
Contributor Author

New commits:

d4781c3trying to add links to lmfdb (not working)
8d7831eMerge branch 'public/18968' in 7.4.b5
2020242trac 18968 link to lmfdb page with correct url

@fchapoton
Copy link
Contributor Author

Commit: 2020242

@fchapoton
Copy link
Contributor Author

Branch: u/chapoton/21533

@fchapoton
Copy link
Contributor Author

comment:3

any opinion on this proposal ?

@JohnCremona
Copy link
Member

comment:4

Is there anywhere else in Sage where a function opens a web page ? Just wondering.

@fchapoton
Copy link
Contributor Author

comment:5

There are already two instances:

git grep -P -c "webbrowser.open"
src/sage/databases/findstat.py:5
src/sage/databases/oeis.py:5

@fchapoton
Copy link
Contributor Author

comment:6

ping ?

@fchapoton fchapoton modified the milestones: sage-7.4, sage-7.6 Jan 25, 2017
@JohnCremona
Copy link
Member

comment:8

I will test this. It should be tested with and without the optional large database -- my own installations probably all have it so I hope someone else can test without.

@JohnCremona
Copy link
Member

comment:9

I tested the branch after merging into current develop (7.6.beta0). It worked fine, starting a browser the first time and then opening new tabs in the same browser after that. If the curve is not in the database it gives a reasonable run-time error.

I'm sure that people will say that they should not have to install the optional database of curves if they can get the data from the LMFDB website; true (unless running Sage off-line) but work for the future.

Should we allow people to open the LMFDB URL of a valid elliptic curve label without constructin the curve? There could be a stand-alone function called (something like) open_lmfdb_elliptic_curve_page('label'), and then the elliptic curve method could call that.

Another follow-up would be for curves over number fields, which are currently being added to the database. But thelabelling is rather complicated to explain in this margin...

@fchapoton
Copy link
Contributor Author

comment:10

I am not favourable to allow this call without building the curve.

@JohnCremona
Copy link
Member

comment:11

That's OK. I'll just finish testing then and expect to give a +ve review soon.

@JohnCremona
Copy link
Member

comment:12

When I remembered to doctest run the file with --optional=webbrowser,sage it worked fine (causing a page to pop up).

I did not test the part where an LMFDB label is used instead, since the curves obtained from the database do not have this field set. There's another ticket somewhere which will add these, and when that happens we'll see if that part of this code works as it should.

@JohnCremona
Copy link
Member

Reviewer: John Cremona

@vbraun
Copy link
Member

vbraun commented Jan 28, 2017

Changed branch from u/chapoton/21533 to 2020242

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants