I tried something else that a saw online:

input:
a=matrix(QQ,2,3,[1,2,3, 4,5,6])
show(a)

output:
 looks like what I would expect.


So do NumPy arrays not display like a matrix in the notebook?



On Fri, May 28, 2010 at 5:16 PM, Jim Ragsdale <jimragsdal...@gmail.com> wrote:
> System info:
>
> 'Sage Version 4.4.2, Release Date: 2010-05-19'
> Compiled from source on Gentoo Linux.
>
> All,
> I am trying to get an array to show show properly in the notebook.
> if I execute the following code:
> input:
> a=np.ones((3,3))
> a
>
> output:
> array([[ 1.,  1.,  1.],
>       [ 1.,  1.,  1.],
>       [ 1.,  1.,  1.]])
> which looks right to me.
> However, if I use the show(a) command, I get:
>
> [[ 1. 1. 1.] [ 1. 1. 1.] [ 1. 1. 1.]]
>
>
> Shouldn't that show up as a 3x3?
>
> Thanks,
> Jim
>

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to