Re: [sage-support] fails to get graph_editor() to work
Thanks, sage --python setup.py install works for me as well! However, when I try the code in the README from phitigra import EditableGraph eg = EditableGraph(graphs.RandomGNP(10, 0.5)) eg.show() It gives a static picture of a graph. But I can't click to create new nodes nor drag any node with a mouse. On Sunday, August 30, 2020 at 2:13:55 PM UTC-7 dim...@gmail.com wrote: > On Sun, Aug 30, 2020 at 10:03 PM pong wrote: > > > > Hi Jean-Florent, > > > > I did exactly just that (see attachment) but it complains about the need > of at least one requirement to install. > > Please advise. > > how about just doing > > sage --python setup.py install > > in the root directory of phitigra ? > it works for me. > > > > On Sunday, August 30, 2020 at 12:25:11 AM UTC-7 Jean-Florent Raymond > wrote: > >> > >> Hello, > >> > >> Yes, the directory where to run > >> sage -pip install --upgrade --no-index -v . > >> is the directory of the just cloned project (default: phitigra). > >> There is no need to add 'phitigra' to the command line: pip will guess > >> alone what to install from this directory. > >> > >> Jean-Florent. > >> > >> Le 30/08/2020 à 02:35, pong a écrit : > >> > Thanks you. I clone the project but confused what to do next. In the > >> > README, it saids > >> > > >> > Change to the root directory and run: > >> > $ sage -pip install --upgrade --no-index -v . > >> > > >> > which root directory are we talking about? the phitigra directory? > >> > Also should it be sage -pip install phitigra --upgrade -no-index -v? > >> > > >> > In any case, I couldn't get it install so I must be doing something > wrong. > >> > Please help. > >> > > >> > On Saturday, August 29, 2020 at 2:11:12 AM UTC-7 Jean-Florent Raymond > wrote: > >> > > >> >> Hello, > >> >> > >> >> I recently started developing a replacement to graph_editor for the > >> >> jupyter notebook, using ipywidgets and ipycanvas. > >> >> You can find it at the following address : > >> >> https://gitlab.limos.fr/jfraymon/phitigra > >> >> > >> >> This is still work in progress but the basic editor (adding removing > >> >> vertices and edges, displaying the graph, etc.) works. > >> >> One feature that this editor will have is that changes made to the > graph > >> >> outside of the editor will be automatically updated in the editor. > This > >> >> will for instance allow to display step by step the computation done > by > >> >> a function (for teaching, or debugging, or ...). > >> >> > >> >> Any feedback is welcome. > >> >> > >> >> Jean-Florent. > >> >> > >> >> Le 29/08/2020 à 08:27, pong a écrit : > >> >>> I see. Is there a substitute for graph_editor()? It's fairly > convenient. > >> >>> > >> >>> On Thursday, August 27, 2020 at 8:48:32 AM UTC-7 dim...@gmail.com > wrote: > >> >>> > >> On Thu, Aug 27, 2020 at 4:45 PM pong wrote: > >> > >> > > >> > Running sagemath 9.1 from a jupyter notebook > >> > > >> > When calling graph_editor() got the following error message. > >> > How can I make the module 'sagenb' works again? > >> > > >> > >> sagenb does not work with Python 3. You'd need Sage 9.1 (or > earlier) > >> >> built > >> with Python2 in order to be able to use sagenb. > >> > >> And sagenb will be definitely gone in 9.2, which won't support > Python 2. > >> > >> HTH > >> Dima > >> > >> > > >> > [image: ge.png] > >> > > >> > -- > >> > You received this message because you are subscribed to the Google > >> >> Groups > >> > "sage-support" group. > >> > To unsubscribe from this group and stop receiving emails from it, > send > >> >> an > >> > email to sage-support...@googlegroups.com. > >> > To view this discussion on the web visit > >> > > >> >> > https://groups.google.com/d/msgid/sage-support/772c9f8f-e27f-4485-8add-ca97d51290bbn%40googlegroups.com > >> > < > >> >> > https://groups.google.com/d/msgid/sage-support/772c9f8f-e27f-4485-8add-ca97d51290bbn%40googlegroups.com?utm_medium=email_source=footer > >> >>> > >> > . > >> > > >> > >> >>> > >> >> > >> > > > > > -- > > You received this message because you are subscribed to the Google > Groups "sage-support" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to sage-support...@googlegroups.com. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-support/6a7f10e2-83c7-470d-91c2-4cd3d9f7bd6cn%40googlegroups.com > . > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/4fbac570-106a-4bee-99ee-8b53b4d09dc5n%40googlegroups.com.
Re: [sage-support] fails to get graph_editor() to work
On Sun, Aug 30, 2020 at 10:03 PM pong wrote: > > Hi Jean-Florent, > > I did exactly just that (see attachment) but it complains about the need > of at least one requirement to install. > Please advise. how about just doing sage --python setup.py install in the root directory of phitigra ? it works for me. > > On Sunday, August 30, 2020 at 12:25:11 AM UTC-7 Jean-Florent Raymond wrote: >> >> Hello, >> >> Yes, the directory where to run >> sage -pip install --upgrade --no-index -v . >> is the directory of the just cloned project (default: phitigra). >> There is no need to add 'phitigra' to the command line: pip will guess >> alone what to install from this directory. >> >> Jean-Florent. >> >> Le 30/08/2020 à 02:35, pong a écrit : >> > Thanks you. I clone the project but confused what to do next. In the >> > README, it saids >> > >> > Change to the root directory and run: >> > $ sage -pip install --upgrade --no-index -v . >> > >> > which root directory are we talking about? the phitigra directory? >> > Also should it be sage -pip install phitigra --upgrade -no-index -v? >> > >> > In any case, I couldn't get it install so I must be doing something wrong. >> > Please help. >> > >> > On Saturday, August 29, 2020 at 2:11:12 AM UTC-7 Jean-Florent Raymond >> > wrote: >> > >> >> Hello, >> >> >> >> I recently started developing a replacement to graph_editor for the >> >> jupyter notebook, using ipywidgets and ipycanvas. >> >> You can find it at the following address : >> >> https://gitlab.limos.fr/jfraymon/phitigra >> >> >> >> This is still work in progress but the basic editor (adding removing >> >> vertices and edges, displaying the graph, etc.) works. >> >> One feature that this editor will have is that changes made to the graph >> >> outside of the editor will be automatically updated in the editor. This >> >> will for instance allow to display step by step the computation done by >> >> a function (for teaching, or debugging, or ...). >> >> >> >> Any feedback is welcome. >> >> >> >> Jean-Florent. >> >> >> >> Le 29/08/2020 à 08:27, pong a écrit : >> >>> I see. Is there a substitute for graph_editor()? It's fairly convenient. >> >>> >> >>> On Thursday, August 27, 2020 at 8:48:32 AM UTC-7 dim...@gmail.com wrote: >> >>> >> On Thu, Aug 27, 2020 at 4:45 PM pong wrote: >> >> > >> > Running sagemath 9.1 from a jupyter notebook >> > >> > When calling graph_editor() got the following error message. >> > How can I make the module 'sagenb' works again? >> > >> >> sagenb does not work with Python 3. You'd need Sage 9.1 (or earlier) >> >> built >> with Python2 in order to be able to use sagenb. >> >> And sagenb will be definitely gone in 9.2, which won't support Python 2. >> >> HTH >> Dima >> >> > >> > [image: ge.png] >> > >> > -- >> > You received this message because you are subscribed to the Google >> >> Groups >> > "sage-support" group. >> > To unsubscribe from this group and stop receiving emails from it, send >> >> an >> > email to sage-support...@googlegroups.com. >> > To view this discussion on the web visit >> > >> >> https://groups.google.com/d/msgid/sage-support/772c9f8f-e27f-4485-8add-ca97d51290bbn%40googlegroups.com >> > < >> >> https://groups.google.com/d/msgid/sage-support/772c9f8f-e27f-4485-8add-ca97d51290bbn%40googlegroups.com?utm_medium=email_source=footer >> >>> >> > . >> > >> >> >>> >> >> >> > > > -- > You received this message because you are subscribed to the Google Groups > "sage-support" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-support+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-support/6a7f10e2-83c7-470d-91c2-4cd3d9f7bd6cn%40googlegroups.com. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/CAAWYfq0Ph3Z%3DjZbg1hOzwtXJ4wpYTz3bjmoyN4zDintey8qaSw%40mail.gmail.com.
Re: [sage-support] gp in Sage
On Sun, Aug 30, 2020 at 9:24 AM Dima Pasechnik wrote: > > On Sun, Aug 30, 2020 at 5:50 AM Surendran Karippadath > wrote: > > I evaluated the j-invariant in Pari/gp In SageMathCell > > ? \p 50 > > ? ellj(sqrt(163.0)*I) > > %1 = 68925893036109279891085639286944512.0163739 > > Sage has this function too (it calls Pari, so that's not an > independent confirmation that this number is (not) an integer: > sage: elliptic_j(sqrt(163)*I,prec=500) > 6.892589303610927989108563928694451201637386442092346075751855217523117650690239250072955532985645916831850173541132959651401661828116253839333e34 > > The output in Pari is a bit easier to read: > > ? \p 500 > ? ellj(sqrt(163)*I) > %4 = > 68925893036109279891085639286944512.016373864420923460757518552[...] > > Is it one of these "almost integers" (unless it's a bug, and this > number must be an integer, I don't know - number theorists, please > step forward!), such as > ? \p 500 > ? exp(sqrt(163)*Pi) > %3 = > 262537412640768743.25007259719818568887935385633733699086270[...] > > Or a bug in Pari/GP ? If I read the discussion after Cor. 42 in http://people.maths.ox.ac.uk/greenbj/papers/ramanujanconstant.pdf right, this is not an integer. Indeed, there are 9 imaginary quadratic extensions of Q for which one gets integer j-invariant, one of them Q[sqrt(-163)], but as 163 mod 4 = 3, one has to compute its j-invariant as ellj((1+sqrt(163)*I)/2) getting -262537412640768000 > > > > > > Furthermore the Cube-root of the j-invariant I obtained > > ? (ellj(sqrt(163.0)*I))^(1/3) > > %2 = 410009702400.00077461269365317226812447191214259043 > > the closest integer to (ellj(sqrt(163.0)*I))^(1/3) is 410009702400, > and so you can check > that its cube is quite far from ellj(sqrt(163)*I) > > > > > > > Is it possible to check in Sage with High Precision if the values are > > Integers. > > > > Thanking you in advance > > > > -- > > You received this message because you are subscribed to the Google Groups > > "sage-support" group. > > To unsubscribe from this group and stop receiving emails from it, send an > > email to sage-support+unsubscr...@googlegroups.com. > > To view this discussion on the web visit > > https://groups.google.com/d/msgid/sage-support/CAGp5ChV21gzwieMCGvywDMxETh3ZUOuOpHaSGUbPNhNHvbVOpg%40mail.gmail.com. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/CAAWYfq0kox%3DLYaemNbNdXcDNHKDMxwFaYq9VKASHDoaa1bjZ%3Dg%40mail.gmail.com.
Re: [sage-support] gp in Sage
On Sun, Aug 30, 2020 at 5:50 AM Surendran Karippadath wrote: > I evaluated the j-invariant in Pari/gp In SageMathCell > ? \p 50 > ? ellj(sqrt(163.0)*I) > %1 = 68925893036109279891085639286944512.0163739 Sage has this function too (it calls Pari, so that's not an independent confirmation that this number is (not) an integer: sage: elliptic_j(sqrt(163)*I,prec=500) 6.892589303610927989108563928694451201637386442092346075751855217523117650690239250072955532985645916831850173541132959651401661828116253839333e34 The output in Pari is a bit easier to read: ? \p 500 ? ellj(sqrt(163)*I) %4 = 68925893036109279891085639286944512.016373864420923460757518552[...] Is it one of these "almost integers" (unless it's a bug, and this number must be an integer, I don't know - number theorists, please step forward!), such as ? \p 500 ? exp(sqrt(163)*Pi) %3 = 262537412640768743.25007259719818568887935385633733699086270[...] Or a bug in Pari/GP ? > > Furthermore the Cube-root of the j-invariant I obtained > ? (ellj(sqrt(163.0)*I))^(1/3) > %2 = 410009702400.00077461269365317226812447191214259043 the closest integer to (ellj(sqrt(163.0)*I))^(1/3) is 410009702400, and so you can check that its cube is quite far from ellj(sqrt(163)*I) > > Is it possible to check in Sage with High Precision if the values are > Integers. > > Thanking you in advance > > -- > You received this message because you are subscribed to the Google Groups > "sage-support" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-support+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-support/CAGp5ChV21gzwieMCGvywDMxETh3ZUOuOpHaSGUbPNhNHvbVOpg%40mail.gmail.com. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/CAAWYfq0wmVYqSc3uJmTNJWQ9pYKQcM62O_wFCbZJ5W2f06bzwQ%40mail.gmail.com.
Re: [sage-support] fails to get graph_editor() to work
Hello, Yes, the directory where to run sage -pip install --upgrade --no-index -v . is the directory of the just cloned project (default: phitigra). There is no need to add 'phitigra' to the command line: pip will guess alone what to install from this directory. Jean-Florent. Le 30/08/2020 à 02:35, pong a écrit : > Thanks you. I clone the project but confused what to do next. In the > README, it saids > > Change to the root directory and run: > $ sage -pip install --upgrade --no-index -v . > > which root directory are we talking about? the phitigra directory? > Also should it be sage -pip install phitigra --upgrade -no-index -v? > > In any case, I couldn't get it install so I must be doing something wrong. > Please help. > > On Saturday, August 29, 2020 at 2:11:12 AM UTC-7 Jean-Florent Raymond wrote: > >> Hello, >> >> I recently started developing a replacement to graph_editor for the >> jupyter notebook, using ipywidgets and ipycanvas. >> You can find it at the following address : >> https://gitlab.limos.fr/jfraymon/phitigra >> >> This is still work in progress but the basic editor (adding removing >> vertices and edges, displaying the graph, etc.) works. >> One feature that this editor will have is that changes made to the graph >> outside of the editor will be automatically updated in the editor. This >> will for instance allow to display step by step the computation done by >> a function (for teaching, or debugging, or ...). >> >> Any feedback is welcome. >> >> Jean-Florent. >> >> Le 29/08/2020 à 08:27, pong a écrit : >>> I see. Is there a substitute for graph_editor()? It's fairly convenient. >>> >>> On Thursday, August 27, 2020 at 8:48:32 AM UTC-7 dim...@gmail.com wrote: >>> On Thu, Aug 27, 2020 at 4:45 PM pong wrote: > > Running sagemath 9.1 from a jupyter notebook > > When calling graph_editor() got the following error message. > How can I make the module 'sagenb' works again? > sagenb does not work with Python 3. You'd need Sage 9.1 (or earlier) >> built with Python2 in order to be able to use sagenb. And sagenb will be definitely gone in 9.2, which won't support Python 2. HTH Dima > > [image: ge.png] > > -- > You received this message because you are subscribed to the Google >> Groups > "sage-support" group. > To unsubscribe from this group and stop receiving emails from it, send >> an > email to sage-support...@googlegroups.com. > To view this discussion on the web visit > >> https://groups.google.com/d/msgid/sage-support/772c9f8f-e27f-4485-8add-ca97d51290bbn%40googlegroups.com >> > < >> https://groups.google.com/d/msgid/sage-support/772c9f8f-e27f-4485-8add-ca97d51290bbn%40googlegroups.com?utm_medium=email_source=footer >>> > . > >>> >> > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/187962dc-302a-2527-f183-0f42c25e652c%40uca.fr.