question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

$el missing when inheriting from BoxView

See original GitHub issue

The BeakerX team is separating out table display as a standalone widget and in the process is upgrading it to work with the latest versions of the Jupyter ecosystem libraries. We have run into issues. @piorek writes:

I’ve changed to @jupyter-widgets/base ^1 || ^2 and that part is working fine while using ipywidgets<7.5 but as soon as I try to use it with ipywidgets 7.5 I have a problem. In many our views like EasyFormView we are using Bootstrap.View stuff like having this.$el but after switching to ipywidgets#7.5 it’s not there at runtime at least not here: https://github.com/twosigma/beakerx/blob/lukasz/8056_separate_table_display/js/notebook/src/EasyForm.ts#L66 maybe it’s because of

  • where we are using it,
  • some changes in ipywidgets#7.5,
  • some changes in jupyterlab#1.0 itself

cc: @LeeTZ @lukasz @SylvainCorlay @jasongrout cf. https://github.com/twosigma/beakerx/pull/8076

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
piorekcommented, Jul 29, 2019

@jasongrout i’ve tested code with

this.$el = $(this.pWidget.node);

added and can confirm that it fixes the problem

0reactions
jasongroutcommented, Jul 26, 2019

Can you override BoxView’s _setElement in your widget to be this?

    _setElement(el: HTMLElement) {
        if (this.el || el !== this.pWidget.node) {
            // Boxes don't allow setting the element beyond the initial creation.
            throw new Error('Cannot reset the DOM element.');
        }

        this.el = this.pWidget.node;
        this.$el = $(this.pWidget.node);
    }

That last line was missing in BoxView, and I think that was what was causing the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Inherited Form" template is missing - Microsoft Q&A
"Inherited Form" template is missing. I have a form, and want to add inherited one. When I go Project > Add Form and...
Read more >
Skill Inheritance - Megami Tensei Wiki - Fandom
Skill Inheritance is a fusion mechanic in the series. ... Most skills do not have an inheritance type, and can be inherited by...
Read more >
Observable interface behavior and inheritance - CiteSeerX
This paper formalizes the observable interface behavior of open systems for a strongly-typed, concurrent object-oriented language with single-class ...
Read more >
Untitled
Lamuro resort el nido, Miss. mulatto, Bidouille compteur electronique edf, ... Bruce lietzke net worth, Boba fett and han solo story, Boxview, Cox...
Read more >
Untitled
De la bachelerie veronique, Gosea dreamer review, Cuisson steak de biche, ... Sd.kfz.142/1 3rd assault gun type f, Marque maillot de bain miss...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found