Easy way to print last assignment in cell?

This is an upstream wontfix from CPython, as discussed on IPython.

The workaround is to wrap the assignment in a parenthesis, e.g.

(x := 1)
1 Like