using show automatically in flask notebook

asked 2018-03-08 19:30:55 +0200

Poetastrophe gravatar image

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?

edit retag flag offensive close merge delete