Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

using show automatically in flask notebook

Is there a way to make sage flask notebook automatically use show when assigning a variable? For instance if I don't assign the right hand side to variable flask will attempt to typeset it.

vector([1,2,3])

But if I assign it to a variable r

r=vector([1,2,3])

it will only show it immediately if I type

r=vector([1,2,3]);show(r)

or simply

r=vector([1,2,3]);r

But I find it a bit tedious if I have to type that every time, so is there a way to make show, get executed automatically, whenever one is assigning a variable?