-
-
Notifications
You must be signed in to change notification settings - Fork 517
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
Replace sage.graphs.graph_editor with a call to phitigra #33639
Comments
Dependencies: #30540 |
New commits:
|
Commit: |
comment:3
Could you add in the ticket description what should be done to launch the editor.
|
comment:4
Yes, I just added it in the description. It is slightly different than the previous editor: here we define an editor object, that we have to display (with The call to By the way, I am not done with the changes yet, I only pushed the commit so that I can work on this from a different computer. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:6
Thanks for working on this! The old graph editor was really a fantastic resource we loved to show off, and a good replacement would have been useful even last week for me to advertise. If there is the possibility of demonstrating/documenting a few (even if not possible to be tested) examples in your coming updates, that would also be great. It is likely that this would be used by people Also, if we could see whether this works properly in the Sage cell server before it's released in a final version (beta is fine), that would be good, so I'm cc:ing Andrey N. |
comment:7
Replying to @kcrisman:
Hi, The repository of the editor widget ( https://github.com/jfraymond/phitigra ) has a demo notebook ( Currently it is already possible to try the demo notebook after installing the editor package with During a short period of time it was possible to run it on mybinder https://mybinder.org/v2/gh/jfraymond/phitigra/master?filepath=demo.ipynb but for some reason (on the mybinder side?) it stopped working. |
comment:8
I tried on macOS 12.2.1 and it works well. It just needs some documentation. |
comment:9
It's best to replace this with a "lazy_import with feature", similar to |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Author: Jean-Florent Raymond |
comment:12
There are now some live examples of the widget using the recently introduced ".. JUPYTER-EXECUTE::" sphinx directive (this is the reason why I merged the develop branch). I was not able to completely test them, presumably because the version of sage running them (online?) does not include the current ticket yet. If this is a problem I can revert to a previous commit and add the examples in an other ticket. |
comment:13
What's the expected behavior of the live examples if phitigra is not installed ? |
comment:14
That's a good question. I just tested and the documentation does not build in this case :(. If I guessed correctly from what I experienced in this first encounter with sphinx-jupyter
As it is an optional package I guess the correct choice here is to remove these live examples, right ? |
comment:15
You can try Matthias will certainly clarify this. |
comment:16
|
comment:17
... or adapt it from |
comment:18
This is a nice addition to sage. Thanks for working on this. A few comments:
|
comment:19
Replying to @kwankyu:
To be clear, there is no problem in your using |
comment:25
Now that |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:27
I just replaced like that: -from sage.features import PythonModule
-lazy_import('phitigra', 'GraphEditor',
- feature=PythonModule('phitigra', spkg='phitigra'))
+from sage.features.phitigra import Phitigra
+lazy_import('phitigra', 'GraphEditor', feature=Phitigra()) |
Reviewer: Matthias Koeppe, ... |
comment:28
Thanks, the use of |
Changed reviewer from Matthias Koeppe, ... to Matthias Koeppe, Kwankyu Lee |
Changed branch from u/gh-jfraymond/replace_graph_editor to public/33639 |
New commits:
|
comment:30
I did some edits. If you are okay with those, then you can give positive review. |
comment:31
Thanks! |
Branch pushed to git repo; I updated commit sha1 and set ticket back to needs_review. New commits:
|
comment:34
this was not necessary ; patchbot is dumb and only giving advice suggestion : never ever do something on a positive reviewed ticket, unless it is critical |
comment:35
OK, thanks for the advice and sorry for the useless commit then. |
comment:36
Bah, ça prend toujours une plombe pour qu'un ticket soit intégré dans sage. Et encore plus longtemps quand on est dans une période juste avant une nouvelle version. La 9.6 ne va pas tarder. |
Changed branch from public/33639 to |
phitigra was added as an optional package in #30540.
To launch the editor:
To retrieve the graph:
Depends on #30540
CC: @kcrisman @fchapoton @dcoudert @dimpase @jfraymond @novoselt
Component: user interface
Author: Jean-Florent Raymond
Branch/Commit:
0549fa9
Reviewer: Matthias Koeppe, Kwankyu Lee
Issue created by migration from https://trac.sagemath.org/ticket/33639
The text was updated successfully, but these errors were encountered: