Re: [sage-devel] Merging sage-7.0 into existing branch

2016-01-24 Thread Jeroen Demeyer
On 2016-01-23 22:34, David Roe wrote: python -u setup.py install Traceback (most recent call last): File "setup.py", line 47, in from module_list import ext_modules, library_order, aliases File

Re: [sage-devel] Re: https on the wiki

2016-01-24 Thread William Stein
On Sun, Jan 24, 2016 at 2:32 PM, mmarco wrote: > I have added https support for the wiki page, with a certificate signed by > letsnecrypt. The http version redirects to the https version. Thank you! > > It is possible that your browser might complain about insecure elements in

Re: [sage-devel] Matrix unicode output

2016-01-24 Thread Vincent Delecroix
At least you can do sage: from sage.repl.rich_output import get_display_manager sage: dm = get_display_manager() sage: dm.text = 'unicode_art' sage: matrix([[2,1],[2,2]]) ⎛2 1⎞ ⎝2 2⎠ There was a proposal in http://trac.sagemath.org/ticket/18270#comment:6 to actually make it the default if

[sage-devel] Re: Matrix unicode output

2016-01-24 Thread Marc Mezzarobba
Vincent Delecroix wrote: > At least you can do > > sage: from sage.repl.rich_output import get_display_manager > sage: dm = get_display_manager() > sage: dm.text = 'unicode_art' ...or sage: %display unicode_art sage: matrix.block(3,3,[matrix.ones(2)]*9)

[sage-devel] Matrix unicode output

2016-01-24 Thread Nathann Cohen
Hello everybody, I just noticed that M.str(unicode=True) (when M is a matrix) prints the matrix very nicely (especially when it is a block matrix), with pretty parentheses on both sides. sage: print matrix.block(3,3,[matrix.ones(2)]*9).str(unicode=True) Would it be possible to make it the

Re: [sage-devel] Matrix unicode output

2016-01-24 Thread Nathann Cohen
Y, > sage: from sage.repl.rich_output import get_display_manager > sage: dm = get_display_manager() > sage: dm.text = 'unicode_art' > sage: matrix([[2,1],[2,2]]) > ⎛2 1⎞ > ⎝2 2⎠ Oh, True. But I have to use .str() all the time though, because my matrices are too large to appear in the

Re: [sage-devel] Matrix unicode output

2016-01-24 Thread Nathann Cohen
Detecting the locale is apparently rather straightforward: sage: import locale sage: locale.getdefaultlocale() ('en_US', 'UTF-8') Not sure that I know where the code must be written, though ^^; Nathann On 24 January 2016 at 18:25, Nathann Cohen wrote: >

Re: [sage-devel] Re: Matrix unicode output

2016-01-24 Thread Nathann Cohen
> sage: %display unicode_art > sage: matrix.block(3,3,[matrix.ones(2)]*9) Would it be safe to enable unicode_art on startup if it is supported? Or does it mean that many objects will be displayed with drawings instead of their usual representation as a consequence? I am trying to figure out

Re: [sage-devel] Re: Matrix unicode output

2016-01-24 Thread Nathann Cohen
> Like for matrices, to come back to the topic? Indeed, repr(a_matrix) doesn't follow Python's syntax. And list of matrices is even worse: sage: [matrix.ones(4) for i in range(4)] [ [1 1 1 1] [1 1 1 1] [1 1 1 1] [1 1 1 1] [1 1 1 1] [1 1 1 1] [1 1 1 1] [1 1 1 1] [1 1 1

[sage-devel] Re: Plots in plot.py documentation

2016-01-24 Thread jhonrubia6
Ok. http://trac.sagemath.org/19953 created, working on it. El jueves, 21 de enero de 2016, 20:45:31 (UTC+1), jhonrubia6 escribió: > > Does it makes sense to you if I modify the plot.py docstrings in order to > include PLOT:: blocks? Wouldn't it be more clear for newbies? (well it wold > have

Re: [sage-devel] Re: Matrix unicode output

2016-01-24 Thread Vincent Delecroix
Yes, you break the fact that for many objects you can copy/paste the output to get your object back sage: %display plain sage: integral(gamma(x), x) integrate(gamma(x), x) sage: eval("integrate(gamma(x), x)") integrate(gamma(x), x) but sage: %display unicode_art sage: integrate(gamma(x), x) ⌠

[sage-devel] Re: Matrix unicode output

2016-01-24 Thread John H Palmieri
On Sunday, January 24, 2016 at 9:10:27 AM UTC-8, Nathann Cohen wrote: > > Hello everybody, > > I just noticed that M.str(unicode=True) (when M is a matrix) prints the > matrix very nicely (especially when it is a block matrix), with pretty > parentheses on both sides. > > sage: print

Re: [sage-devel] Re: Matrix unicode output

2016-01-24 Thread Volker Braun
There is no bulletproof way for the program to determine whether the terminal can display unicode. But every half-way recent terminal can, and we have been using unicode in the startup banner for years without problems. I'd just assume that it works by default nowadays. %display unicode_art

Re: [sage-devel] Re: Matrix unicode output

2016-01-24 Thread Nathann Cohen
Okay. So let's say that we enable ascii_art by default: is there a unintended consequence? Or should we just do that? Nathann On 24 January 2016 at 19:57, Volker Braun wrote: > There is no bulletproof way for the program to determine whether the > terminal can display

Re: [sage-devel] Re: Matrix unicode output

2016-01-24 Thread Volker Braun
On Sunday, January 24, 2016 at 2:09:20 PM UTC-5, vdelecroix wrote: > > Yes, you break the fact that for many objects you can copy/paste the > output to get your object back > Like for matrices, to come back to the topic? Also, is the Sage output primarily for humans or primarily

[sage-devel] Re: Matrix unicode output

2016-01-24 Thread Volker Braun
Yes you can set it up the way you want, this is about what a sane DEFAULT is. And the best machine parseable output is, like the best output for the visually impared, not the best output for the majority of our potential users. On the plus side they will never become our users as long as we try

[sage-devel] Re: https on the wiki

2016-01-24 Thread mmarco
I have added https support for the wiki page, with a certificate signed by letsnecrypt. The http version redirects to the https version. It is possible that your browser might complain about insecure elements in the page. That is due to resources that are taken from other webpages that either

[sage-devel] Re: Matrix unicode output

2016-01-24 Thread Travis Scrimshaw
You can always setup your Sage to your custom preferences by adding things to "~/.sage/init.sage". In this case, just add "%display unicode_art". Best, Travis -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and

[sage-devel] Re: Matrix unicode output

2016-01-24 Thread Nils Bruin
On Sunday, January 24, 2016 at 1:46:34 PM UTC-8, Volker Braun wrote: > > Yes you can set it up the way you want, this is about what a sane DEFAULT > is. And the best machine parseable output is, like the best output for the > visually impared, not the best output for the majority of our

Re: [sage-devel] Merging sage-7.0 into existing branch

2016-01-24 Thread David Roe
Thanks; that worked. David On Sun, Jan 24, 2016 at 4:10 AM, Jeroen Demeyer wrote: > On 2016-01-23 22:34, David Roe wrote: > >> python -u setup.py install >> >> Traceback (most recent call last): >>