This is traced back to internal calls in backbone.js and extension.js for create_view (which is called twice), leading the JupyterWidgetView class to be initialized twice.
export class JupyterWidgetView extends DOMWidgetView {
initialize(){
....
ReactDOM.render(App,$app);
view.el.append($app);
}
It is unclear if this is an issue with the ipywidget internal or something different we have to do in our JupyterWidgetView react class (perhaps wrapping it in something other than initialize?).
Action Items:
For now, the logger accounts for this by de-duplicating initWidget events that occur together in too short a timespan.
We should look into this issue closer since this may cause a slowdown as the widget frontend needs to render two times.
This is traced back to internal calls in backbone.js and extension.js for create_view (which is called twice), leading the
JupyterWidgetViewclass to be initialized twice.It is unclear if this is an issue with the ipywidget internal or something different we have to do in our JupyterWidgetView react class (perhaps wrapping it in something other than initialize?).
Action Items:
For now, the logger accounts for this by de-duplicating
initWidgetevents that occur together in too short a timespan.We should look into this issue closer since this may cause a slowdown as the widget frontend needs to render two times.