fixed a regression with repr in notebook, not sure when this was
introduced