If you find yourself typing show() all the time you probably want to change the displayhook to typeset stuff, i.e. you want "%display typeset" in the notebook or on the command line:
sage: m = random_matrix(ZZ, 3) sage: m [12 -5 6] [ 1 -1 1] [-1 2 1] sage: %display unicode_art sage: m ⎛12 -5 6⎞ ⎜ 1 -1 1⎟ ⎝-1 2 1⎠ In general, I would lean more on the side of reasonable defaults (e.g. why is %display typeset not the default in the notebook, its easier for power users to turn it off than for novices to turn it on) than a proliferation of more display-related methods. On Sunday, May 19, 2019 at 1:29:58 AM UTC+2, Kwankyu Lee wrote: > > Hi, > > How about adding show() method to the class of sage objects, so that we > can do > > mat.transpose().show() > > instead of > > show(mat.transpose()) > > which is cumbersome to add to and remove from mat.transpose()? This is > useful in Jupyter notebook. > > > Kwankyu > -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/219017e2-ba73-4d5a-b727-c8d2b3f9076d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.