This one will take some more tracing. There are checks when something is a list/tuple and then there are checks of elements of such things, both break with iterators. Thank you for uncovering these places!
On Thursday, 4 June 2020 12:31:05 UTC-6, kcrisman wrote: > > I am actually in the midst of collating this. But one indication the > doctests are not so helpful is this one, directly from the > interact_compatibility.py. If you change the (1..10) to [1..10], which > makes a list and not a generator, it does fine. Anyway, I am trying to > make a good document that can serve as a "master reference" - really, all > three APIs take directly from the original sagenb one pretty directly, > except Sage cell and CoCalc have more functionality and Jupyter has a few > differences (so far as I can tell as yet). > > It would be interesting to know where such a document should live! I'm > not sure. > > sage: @interact > > ... def _(R=selector([ZZ,QQ,GF(17),RDF,RR]), n=(1..10)): > > ... M = random_matrix(R, n) > > ... show(M) > > ... show(matrix_plot(M,cmap='Oranges')) > > ... f = M.charpoly() > > ... print(f) > > <html>... > -- You received this message because you are subscribed to the Google Groups "sage-cell" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-cell/be5fb05a-5b9f-4a32-bb86-4981d9ee9832o%40googlegroups.com.
