Hello everybody, In #18289 [2], Volker is improving the Notebook interface by making some objects be automatically plotted by __repr__ [1]
graphs.PetersenGraph() # this graph is plotted or P = posets.ChainPoset(10) # no plot P # here, P is plotted So far he only implemented it for graphs (with <20 vertices), but more objects should be added to the list. For instance: - Posets - Finite State Machine - Permutations (?) - Crystals (?) Basically everything that has a .plot() command can appear there. I expect that you would like some trees to be plotted too. Like DyckWords, or something. Whoever you are, name here the objects which you think should be plotted (with some condition ensuring that the plot is 'small') Thanks, Nathann [1] This is an oversimplification. Let us just say that whenever you expect __repr__ to be called, you will see a drawing instead. The actual mechanism is more complicated. [2] http://trac.sagemath.org/ticket/18289#comment:87 -- 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 http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.