Can scala worksheet display images

Is there any way in the scala worksheet to cause instances of my classes to display as an image which I can generate dynamically?  As I understand this is a feature supported by Jupyter and emacs.

评论操作 固定链接

Apparently in Jupyter this works by the application providing a method of a particular name specialising on the object.  That method is responsible for generating an svg file, and I suppose returning the name of the file?