[sage-devel] Re: sagemath 9.6 beta1 jupyter notebook missing output

2022-02-20 Thread ph h
Hi,

Sage behavior seems to be different on the console:

~/sage-9.6/b01$ ./sage
┌┐
│ SageMath version 9.6.beta1, Release Date: 2022-02-13   │
│ Using Python 3.8.10. Type "help()" for help.   │
└┘
┏┓
┃ Warning: this is a prerelease version, and it may be unstable. ┃
┗┛
sage: A = matrix([[1,2],[3,4]])
sage: A^0; A^1; A^2; A^3; A^4
[1 0]
[0 1]
[1 2]
[3 4]
[ 7 10]
[15 22]
[ 37  54]
[ 81 118]
[199 290]
[435 634]

sage: for i in [0,1,2,3,4]:
: A^i
:
[1 0]
[0 1]
[1 2]
[3 4]
[ 7 10]
[15 22]
[ 37  54]
[ 81 118]
[199 290]
[435 634]
sage: for i in [0..4]:
: det(A^i)
:
1
-2
4
-8
16
sage:


A clarification is much appreciated if the 'sage help' is applicable to 
sage console only:
http://localhost:/kernelspecs/sagemath/doc/prep/Programming.html#lists-loops-and-set-builders

Do we have different documentation for the sage console and Jupyter 
notebook?

Regards,

phiho

On Sunday, February 20, 2022 at 8:40:31 AM UTC-5 Eric Gourgoulhon wrote:

> Hi,
>
> Le samedi 19 février 2022 à 03:28:03 UTC+1, hohoa...@gmail.com a écrit :
>
>>
>>
>>1. In [3] only gives A^4 in Out [3] (missing A^0, A^1, A^2 and A^3)
>>2.  In [4] gives no output (but In [8] does)
>>3. In [6] gives no output (but In [7] does)
>>
>> There is no bug in all this. To display some item at each step of a loop 
> use show() or print(), e.g.
>
> for i in [0, 1, 2, 3, 4]:
>  show(A^i)
>
> Eric.
>

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/4c778ef8-6bbc-4b9d-b21d-ec63cc4ab04an%40googlegroups.com.


[sage-devel] Re: sagemath 9.6 beta1 jupyter notebook missing output

2022-02-20 Thread Eric Gourgoulhon
Hi,

Le samedi 19 février 2022 à 03:28:03 UTC+1, hohoa...@gmail.com a écrit :

>
>
>1. In [3] only gives A^4 in Out [3] (missing A^0, A^1, A^2 and A^3)
>2.  In [4] gives no output (but In [8] does)
>3. In [6] gives no output (but In [7] does)
>
> There is no bug in all this. To display some item at each step of a loop 
use show() or print(), e.g.

for i in [0, 1, 2, 3, 4]:
 show(A^i)

Eric.

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/d7e99a7e-0c7a-4f03-8ee0-bbe373c746b4n%40googlegroups.com.