[sage-devel] An index for Sage pedagogical ressources

2015-02-11 Thread Thierry
Hi, during SD57, Vincent, Luca and myself worked on "Index Librorum Salvificorum", a web service that allows to index various kind of documents related to Sage (pdf, ipynb, sws, rst,...). It is hosted on a VM at my lab: http://sageindex.lipn.univ-paris13.fr/ Some informations are provided on the

Re: [sage-devel] Re: Re: Re: Python vs Cython parents, and element constructors

2015-02-11 Thread Robert Bradshaw
On Wed, Feb 11, 2015 at 9:17 AM, Marc Mezzarobba wrote: > Jeroen Demeyer wrote: > >> You are missing something: > > Indeed! Thanks for pointing it out. That was sloppy grepping of mine. > >> * finite fields are Python >> (src/sage/rings/finite_rings/finite_field_*.py) > > So in this case, apparent

Re: [sage-devel] Re: Python vs Cython parents, and element constructors

2015-02-11 Thread Robert Bradshaw
On Wed, Feb 11, 2015 at 3:15 AM, Marc Mezzarobba wrote: > Volker Braun wrote: >> My advice would be to implement the parent in Python and benchnmark >> it. If you are doing something in _element_constructor_ that would >> benefit greatly by Cython then you can just move that part to Cython. > > Ap

Re: [sage-devel] Re: polytopes.n_simplex(3).show() does nothing ?

2015-02-11 Thread Volker Braun
Its tricky. The right thing to do would be to keep stdout/stderr from the child process and wait until either it returns an error, it opens a window (wait for an X window with the right _NET_WM_PID to pop up), or a timeout expries (10 seconds or so).Then show the output with a suitable error me

Re: [sage-devel] Re: [sage-nt] GSoC projects

2015-02-11 Thread Vincent Knight
I have added a project on Game Theory (generally extend what is there: still a lot of work to do! :)). Apologies in advance if I've done this wrong (would not be my first time...). Thanks, Vince On Wed Feb 11 2015 at 15:34:39 Simon Spicer wrote: > As someone who participated in GSoC 2014 as a

[sage-devel] Re: Re: Re: Python vs Cython parents, and element constructors

2015-02-11 Thread Marc Mezzarobba
Jeroen Demeyer wrote: >> Element.__call__ calls it, it is a Cython call. > There is no Element.__call__. I meant Parent.__call__, sorry. -- Marc -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving e

Re: [sage-devel] sage -n ipython broken

2015-02-11 Thread Thierry
On Wed, Feb 11, 2015 at 02:44:50PM +0200, Clemens Heuberger wrote: > >From 6.5.rc0 on, > sage -n ipython > does no longer work, it starts the sagenb notebook with directory > ipython.sagenb. > > Until 6.5.beta6, this opened the ipython notebook. > > sage -n -h says: > --notebook [NOTEBOO

[sage-devel] Re: Re: Re: Python vs Cython parents, and element constructors

2015-02-11 Thread Marc Mezzarobba
Jeroen Demeyer wrote: > You are missing something: Indeed! Thanks for pointing it out. That was sloppy grepping of mine. > * finite fields are Python > (src/sage/rings/finite_rings/finite_field_*.py) So in this case, apparently, (i) the Python parent classes derive from an abstract Cython cla

Re: [sage-devel] Re: Re: Python vs Cython parents, and element constructors

2015-02-11 Thread Jeroen Demeyer
On 2015-02-11 16:31, Marc Mezzarobba wrote: Yes, that's my question, more or less: for example, QQ is an instance of a Python class, and has a fast element constructor, declared as such in the parent's __init__, but defined outside the Python class, so that (if my understanding is correct, I'm qu

Re: [sage-devel] Re: Re: Python vs Cython parents, and element constructors

2015-02-11 Thread Jeroen Demeyer
On 2015-02-11 16:31, Marc Mezzarobba wrote: And then there is the situation where the parent does store values that you want to access from C or Cython code without paying the cost of a Python attribute access, but then I see no other option than making the parent a Cython class. I agree. -- Yo

Re: [sage-devel] Re: Re: Python vs Cython parents, and element constructors

2015-02-11 Thread Jeroen Demeyer
On 2015-02-11 16:31, Marc Mezzarobba wrote: Unless I'm missing something, RDF, CDF, CC, ZZ, RLF, CLF, and most finite fields, polynomial rings and power series rings are not! You are missing something: * CC is Python (src/sage/rings/complex_field.py) * finite fields are Python (src/sage/rings/

[sage-devel] Re: [sage-nt] GSoC projects

2015-02-11 Thread Simon Spicer
As someone who participated in GSoC 2014 as a grad student implementing mathematical code in Sage, I’d like to chip to any students following this list that this is a *highly* enjoyably and rewarding way to spend a summer. Would highly recommend; shoot me an email if you want more details on the

[sage-devel] Re: Re: Python vs Cython parents, and element constructors

2015-02-11 Thread Marc Mezzarobba
Jeroen Demeyer wrote: > However, I wonder why you insist on using > parent._element_constructor_(). You could for example have a fast > ElementClass.__init__() or a fast non-method function > construct_foo_element(). Yes, that's my question, more or less: for example, QQ is an instance of a Pytho

[sage-devel] Re: Python vs Cython parents, and element constructors

2015-02-11 Thread Volker Braun
On Wednesday, February 11, 2015 at 12:14:46 PM UTC+1, Marc Mezzarobba wrote: > > Or, to put it differently: why are so many parents Cython classes if > there are no benefits? My guess is that its a documentation issue, we should really spell out how to organize parent/elements: * Start with t

Re: [sage-devel] Re: Python vs Cython parents, and element constructors

2015-02-11 Thread Jeroen Demeyer
On 2015-02-11 12:15, Marc Mezzarobba wrote: also that the cost of issuing a Python method call when constructing elements is significant, what is the best approach to deal with it? If you *really* need a fast _element_constructor_ method, then the only way is to use Cython. However, I wonder

Re: [sage-devel] Re: polytopes.n_simplex(3).show() does nothing ?

2015-02-11 Thread Volker Braun
You can have multiple java versions installed, select the active one with "alternatives --config java" On Wednesday, February 11, 2015 at 1:36:17 PM UTC+1, Thierry (sage-googlesucks@xxx) wrote: > > Hi, > > same problem here (Debian wheezy, Sage 6.5.rc1). No jmol works from the > command line

[sage-devel] Re: sage -n ipython broken

2015-02-11 Thread Clemens Heuberger
On 2015-02-11 15:06, Volker Braun wrote: > Can you open a ticket? http://trac.sagemath.org/ticket/17769 regards, CH -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email

[sage-devel] Re: sage -n ipython broken

2015-02-11 Thread Volker Braun
Can you open a ticket? On Wednesday, February 11, 2015 at 1:45:02 PM UTC+1, Clemens Heuberger wrote: > > From 6.5.rc0 on, > sage -n ipython > does no longer work, it starts the sagenb notebook with directory > ipython.sagenb. > > Until 6.5.beta6, this opened the ipython notebook. > >

Re: [sage-devel] Re: polytopes.n_simplex(3).show() does nothing ?

2015-02-11 Thread Nathann Cohen
> Install Java I was talking about fixing sage to get a decent error message. Nathann -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@goog

Re: [sage-devel] Re: polytopes.n_simplex(3).show() does nothing ?

2015-02-11 Thread Volker Braun
Install Java On Wednesday, February 11, 2015 at 1:14:19 PM UTC+1, Nathann Cohen wrote: > > Hmmm... I am a bit embarassed, I do not know really how to 'fix' that. > > Nathann > > On 11 February 2015 at 12:06, Nathann Cohen > wrote: > >> Ca marche pour moi, aussi. Quel version de Sage et Java (j

Re: [sage-devel] Re: GSoC projects

2015-02-11 Thread Vincent Knight
Dima pointed this out to me the other day but I haven't had time to add anything to it. I'm hoping to get to it this evening with an idea of adding a Game theory project :) Thanks, Vince On Wed Feb 11 2015 at 12:52:32 PM mmarco wrote: > IIRC there was an old proposal about implementing semialge

[sage-devel] Re: GSoC projects

2015-02-11 Thread mmarco
IIRC there was an old proposal about implementing semialgebraic sets. It would be nice to retake it. QEPCAD could be used to do much of the heavylifting computations. I know a PhD student that plans to finish his thesis this year and works on related concepts, i can ask him about his availabili

[sage-devel] sage -n ipython broken

2015-02-11 Thread Clemens Heuberger
>From 6.5.rc0 on, sage -n ipython does no longer work, it starts the sagenb notebook with directory ipython.sagenb. Until 6.5.beta6, this opened the ipython notebook. sage -n -h says: --notebook [NOTEBOOK], -n [NOTEBOOK], -notebook [NOTEBOOK] The notebook to run

Re: [sage-devel] Re: polytopes.n_simplex(3).show() does nothing ?

2015-02-11 Thread Thierry
Hi, same problem here (Debian wheezy, Sage 6.5.rc1). No jmol works from the command line (but still from the notebook). I have both version 6 and 7 of openjdk installed, but it seems that version 6 takes precedence. According to my apt logs, those packages were recently updated, so i can not say w

[sage-devel] Re: GSoC projects

2015-02-11 Thread Dima Pasechnik
On 2015-02-11, William Stein wrote: > Does anybody have any GSoC projects to add to > > http://wiki.sagemath.org/GSoC/2015 > > There were basically zero that involved actual mathematics, so I've > added two. One is relevant for quaternion algebras and another for > modular forms. > > Hey peop

[sage-devel] Re: Convex hull in Sage

2015-02-11 Thread Dima Pasechnik
On 2015-02-11, Nathann Cohen wrote: > Yo ! > >> I don't know if PPL does any of these. > > There is a sage.libs.ppl.C_Polyhedron.minimized_generators function Is it incremental? (I.e., can it stop early, encountering a non-convex-hull point?) > >> If it does not, >> I'd suggest using CGAL, where

Re: [sage-devel] Re: Convex hull in Sage

2015-02-11 Thread Nathann Cohen
Yo ! > also, qhull (which used to be a Sage optional package without bindings) is > shipped with scipy Oh. It's probably the best choice. The interface is probably cleaner than with Sage's C_Polyhedron class. Nathann -- You received this message because you are subscribed to the Google Groups

Re: [sage-devel] Re: polytopes.n_simplex(3).show() does nothing ?

2015-02-11 Thread Nathann Cohen
Hmmm... I am a bit embarassed, I do not know really how to 'fix' that. Nathann On 11 February 2015 at 12:06, Nathann Cohen wrote: >> Ca marche pour moi, aussi. Quel version de Sage et Java (java -showversion) >> as-tu? > > O_o > > In french ? :-P > > Well... > > ~$ java -showversion > bash: jav

Re: [sage-devel] Re: Convex hull in Sage

2015-02-11 Thread Thierry
Hi, also, qhull (which used to be a Sage optional package without bindings) is shipped with scipy (and also with matplotlib from version 1.4, so we will have it twice without work), so you could benefit from their Cython interface to use qhull features within Sage (Delaunay triangulation, Voronoi

[sage-devel] Re: Convex hull in Sage

2015-02-11 Thread Nathann Cohen
Yo ! > I don't know if PPL does any of these. There is a sage.libs.ppl.C_Polyhedron.minimized_generators function > If it does not, > I'd suggest using CGAL, where these things work quite well, although it's a > bit of a pain. > (mostly due to its size, and dependence on advanced C++ features).

[sage-devel] Re: Convex hull in Sage

2015-02-11 Thread Dima Pasechnik
Hi Nathann, On Wed, Feb 11, 2015 at 11:37:30AM +0100, Nathann Cohen wrote: > I am dealing with a problem for which I need to check quickly whether a set > of points is in convex position [1] in 2D and 3D. Sage seems to be able to > do that with the commands: > > sage: l = [(1,2),(3,4),(2,5)] > sag

Re: [sage-devel] Re: Convex hull in Sage

2015-02-11 Thread Nathann Cohen
> You can call PPL directly, that'll reduce the overhead. See sage.libs.ppl Thanks. It is faster indeed. Nathann -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[sage-devel] Re: Python vs Cython parents, and element constructors

2015-02-11 Thread Marc Mezzarobba
Volker Braun wrote: > My advice would be to implement the parent in Python and benchnmark > it. If you are doing something in _element_constructor_ that would > benefit greatly by Cython then you can just move that part to Cython. Apparently my question was unclear. Of course, it is good advice as

Re: [sage-devel] Re: polytopes.n_simplex(3).show() does nothing ?

2015-02-11 Thread Nathann Cohen
> Ca marche pour moi, aussi. Quel version de Sage et Java (java -showversion) > as-tu? O_o In french ? :-P Well... ~$ java -showversion bash: java: command not found Actually, this is probably the main issue: ~$ jmol /usr/bin/jmol: 24: /usr/bin/jmol: java: not found No error message, howeve

[sage-devel] Re: polytopes.n_simplex(3).show() does nothing ?

2015-02-11 Thread Volker Braun
Ca marche pour moi, aussi. Quel version de Sage et Java (java -showversion) as-tu? On Wednesday, February 11, 2015 at 11:58:40 AM UTC+1, Frédéric Chapoton wrote: > > Salut, pour moi > > sage: polytopes.n_simplex(3).show() et polytopes.n_simplex(4).show() > > ouvrent Jmol. Sage version 6.5.rc1,

[sage-devel] Re: Convex hull in Sage

2015-02-11 Thread Volker Braun
You can call PPL directly, that'll reduce the overhead. See sage.libs.ppl On Wednesday, February 11, 2015 at 11:37:35 AM UTC+1, Nathann Cohen wrote: > > Hello everybody, > > I am dealing with a problem for which I need to check quickly whether a > set of points is in convex position [1] in 2D a

[sage-devel] Re: polytopes.n_simplex(3).show() does nothing ?

2015-02-11 Thread Frédéric Chapoton
Salut, pour moi sage: polytopes.n_simplex(3).show() et polytopes.n_simplex(4).show() ouvrent Jmol. Sage version 6.5.rc1, ubuntu. Le mercredi 11 février 2015 11:41:44 UTC+1, Nathann Cohen a écrit : > > Hello everybody, > > Could you please check what the following command does on your computer ?

[sage-devel] polytopes.n_simplex(3).show() does nothing ?

2015-02-11 Thread Nathann Cohen
Hello everybody, Could you please check what the following command does on your computer ? sage: polytopes.n_simplex(3).show() On mine, nothing happens. No error message, no nothing. Just silence and loneliness. Same for 4D polytopes, even though I have no idea how we would display that:

[sage-devel] Convex hull in Sage

2015-02-11 Thread Nathann Cohen
Hello everybody, I am dealing with a problem for which I need to check quickly whether a set of points is in convex position [1] in 2D and 3D. Sage seems to be able to do that with the commands: sage: l = [(1,2),(3,4),(2,5)] sage: p = Polyhedron(l) sage: len(p.Vrepresentation()) == len(l) True T