Hi,

I decided to try just a single random example of @interact in Jupyter
with the sage kernel, since I guess Jereon (?) built
an implementation of interact on top of ipywidgets, and I was
surprised that it failed pretty badly.  If you give this as input,

@interact
def f(A = matrix([[1,1],[-1,1]])):
    print(A)
    print(type(A))

# the output is:
(1, 1)
<type 'sage.modules.vector_integer_dense.Vector_integer_dense'>

So it thinks that matrix is a vector...

I don't think ipywidgets even has a matrix input control, so I'm
curious what the plan was here?  In any case, I guess @interact is
still maybe missing some things compared to what is in sagenb?  I
couldn't find anything in trac about this.

 -- William

https://trac.sagemath.org/search?q=%40interact+matrix+jupyter


-- 
William (http://wstein.org)

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to