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
Graph drawing in javascript using d3.js #14953
Comments
Attachment: trac_14953.patch.gz |
comment:3
Attachment: trac_14953_review1.patch.gz very nice tool. Here is a purely cosmetic review patch I still have to finish the review, but later |
comment:4
Well if you have some time to review that ?.... |
Branch: u/ncohen/14953 |
comment:5
Now a GIT patch. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Commit: |
Work Issues: rebase |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:11
Fixed. If you feel like giving it a review ... It is 10 months old already Nathann |
Changed work issues from rebase to none |
comment:13
One must be online to use this stuff, right? |
comment:14
Right now yes, but there is no "technical" reason. Right now, it loads the javascript files d3.js from some URL, all this is not contained in the patch. We can later change that or write a spkg containing those files, and there will be no need of that anymore. Nathann |
comment:15
looks good. I'll check that the docs build, and then it should be good to go. |
Changed branch from u/ncohen/14953 to u/dimpase/14953 |
comment:20
Pops up a browser window when running "make ptestlong"... please find a better way of automated testing ;-) |
comment:21
Also, anything that requires internet must be marked as |
comment:22
Hmmmmm... Is there a way to test anything that this patch does ?... Nathann |
comment:23
You can split the html generation from the show() function and doctest it as usual. Show can just check Also, don't load the html template from |
comment:24
Here is a commit to implement all that. The down side is that you have to run "make" for the .html file to be copied in SAGE_EXTCODE ..... That's what Volker wanted. Nathann New commits:
|
Changed branch from u/dimpase/14953 to u/ncohen/14953 |
comment:25
lgtm |
Changed reviewer from Dima Pasechnik to Dima Pasechnik, Volker Braun |
Changed branch from u/ncohen/14953 to |
Changed commit from |
comment:27
Hi, i do not like the need to fetch a file from the internet to let this work. My question for a future ticket is the following: if i understand correctly, |
comment:28
Yoooooooooooooo !
HMmmmmmm.... I am interested by Volker's answer, but I would say that stuff in src/ should be reviewed... Sooooooo no third-party code should be there. Besides, it is very easy to write spkg now with git. This being said, I do not know which files we are allowed to read at runtime... Nathann |
comment:29
No, |
comment:30
Volker : if we package this code how can we access it at runtime ? What would the spkg-install do, and where would it copy the .js file ? Nathann |
comment:31
OK, so we have to make a spkg that just copy the |
comment:32
there could be copyright issues that would preclude one from distributing it with Sage, so it will need to stay an optional Sage package, whether you like it or not. IANAL. Here is the licence: https://github.com/mbostock/d3/blob/master/LICENSE |
comment:33
IANAL either, this is a Modified BSD License, which is GPL-compatible according to the FSF (see also wikipedia). So it is OK to have it as a standard spkg, right ? |
comment:34
This is now #16434 so that i will learn how to package. |
comment:35
See also #16438 which links both features. |
As the title says.
This drawing method will be as good as the examples that are used to tune its parameters
:-)
Nathann
CC: @sagetrac-bonfroy
Component: graph theory
Author: Nathann Cohen, Brice Onfroy
Branch:
76acf85
Reviewer: Dima Pasechnik, Volker Braun
Issue created by migration from https://trac.sagemath.org/ticket/14953
The text was updated successfully, but these errors were encountered: