Skip to content

JupyterWidgetView rendered twice on initialization #20

Description

@dorisjlee

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghardissues that are non-trivial and hard to support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions