We suspect that Thebe’s implementation of output.js or manager.js is not working properly. In terms of Jupyter “jargon”, I believe that it has something to do with the WidgetModel and WidgetView. I believe Thebe may currently be creating a new WidgetModel for each WidgetView that is created, rather than properly attaching the new WidgetViews to the previously created WidgetModel. Furthermore,
clear_output() does not work at all.
The expected behavior is shown in JupyterLab (without
Output() widget. I believe @SylvainCorlay may have some idea on how to fix this?