Re: [sage-devel] deprecation question

2018-01-19 Thread Travis Scrimshaw
On Friday, January 19, 2018 at 3:31:25 AM UTC-6, Erik Bray wrote: > > On Fri, Jan 19, 2018 at 9:20 AM, Ralf Stephan > wrote: > > Hi, > > Is deprecation necessary for class member functions starting with > > underscore, i.e. a weak "internal use" indicator? > > I don't know what the precedent

Re: [sage-devel] Jupyter header cells ?

2018-01-19 Thread Samuel Lelièvre
For generating books mixing LaTeX and computation cells, see also PreTeXt: http://mathbook.pugetsound.edu/ ​ -- 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 s

Re: [sage-devel] Jupyter header cells ?

2018-01-19 Thread Emmanuel Charpentier
Dear Daniel, Le vendredi 19 janvier 2018 21:05:59 UTC+1, danielv...@yahoo.es a écrit : > > Since I was the originator of this request I would like to explain myself. >> > > I'm new to SageMath, but I have been using WxMaxima for quite a while now. > Which is indeed a good notebook (if a bit insul

Re: [sage-devel] Jupyter header cells ?

2018-01-19 Thread danielvolinski via sage-devel
> > Since I was the originator of this request I would like to explain myself. > I'm new to SageMath, but I have been using WxMaxima for quite a while now. I would like to have some way to define Sections and Subsections in a SageMath notebook, but the definitions should not be static, i.e. if

Re: [sage-devel] Should ZZ^2 be a submodule of CC^2?

2018-01-19 Thread Vincent Delecroix
To my mind, (ZZ^2).span([[1/2,0]]) should not even work... On 19 January 2018 at 09:59, Simon Brandhorst wrote: > > > On Friday, January 19, 2018 at 9:16:16 AM UTC+1, vdelecroix wrote: >> >> I think that it should be False in both situations. "is_submodule" >> should only be used in the context w

Re: [sage-devel] Re: Example graphs and show()

2018-01-19 Thread Dima Pasechnik
On Friday, January 19, 2018 at 10:28:55 AM UTC, Jori Mäntysalo wrote: > > On Fri, 19 Jan 2018, Dima Pasechnik wrote: > > > I think it does matter for the user: in EXAMPLES one should put examples > > useful for the user, and G.show() is more flexible, e.g. one can do > > G.show(method="js") t

Re: [sage-devel] Re: Example graphs and show()

2018-01-19 Thread Jori Mäntysalo
On Fri, 19 Jan 2018, Dima Pasechnik wrote: I think it does matter for the user: in EXAMPLES one should put examples useful for the user, and G.show() is more flexible, e.g. one can do  G.show(method="js") to show G in the browser. True, but is it meaningfull to say for most graphs that this-a

Re: [sage-devel] Re: Example graphs and show()

2018-01-19 Thread Dima Pasechnik
On Thursday, January 18, 2018 at 11:24:56 PM UTC, Travis Scrimshaw wrote: > > > > I don't think plot, unlike show, actually goes through and does the >> > rendering of the image and discards the result. However, I could be >> > wrong about this. >> >> You were right. After >> >> perl -e 's/(G

Re: [sage-devel] deprecation question

2018-01-19 Thread Erik Bray
On Fri, Jan 19, 2018 at 9:20 AM, Ralf Stephan wrote: > Hi, > Is deprecation necessary for class member functions starting with > underscore, i.e. a weak "internal use" indicator? I don't know what the precedent is for Sage, but I would say no. There are rare cases that an undescored member is act

Re: [sage-devel] Should ZZ^2 be a submodule of CC^2?

2018-01-19 Thread Simon Brandhorst
On Friday, January 19, 2018 at 9:16:16 AM UTC+1, vdelecroix wrote: > I think that it should be False in both situations. "is_submodule" > should only be used in the context where we have an ambient free > module, like ZZ^d and two ZZ-submodules U and V. > I disagree - the question makes perfe

Re: [sage-devel] Should ZZ^2 be a submodule of CC^2?

2018-01-19 Thread Simon Brandhorst
Maybe the question then splits into two parts: 1) Is ZZ^2 a subset of CC^2 ? (Use this for __richcmp__) 2) Is ZZ^2 a submodule of CC^2 in the category of modules over ZZ? That is do we view CC^2 as a ZZ-module? (It is a ZZ-module in a natural way by the inclusion ZZ ---> CC) So basically shou

[sage-devel] deprecation question

2018-01-19 Thread Ralf Stephan
Hi, Is deprecation necessary for class member functions starting with underscore, i.e. a weak "internal use" indicator? -- 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 emai

Re: [sage-devel] Should ZZ^2 be a submodule of CC^2?

2018-01-19 Thread Vincent Delecroix
Dear Simon, I think that it should be False in both situations. "is_submodule" should only be used in the context where we have an ambient free module, like ZZ^d and two ZZ-submodules U and V. In particular, this situation implies that U and V are defined over the same base ring. And even more U.a