ipympl icon indicating copy to clipboard operation
ipympl copied to clipboard

Lazy load the js

Open ianhi opened this issue 4 years ago • 2 comments

Describe the issue

I don't think that the js is loaded lazily which increases the time until the jlab splash screen shows up.

Proposed Solution

Lazy load the widgetExports similar to https://github.com/QuantStack/ipycytoscape/pull/222

Though this may be complicated by the reading of package.json for the version? https://github.com/matplotlib/ipympl/blob/3a75b2bbab58bf5748c87c96c05e79e6545f64e0/js/src/index.js#L4

ianhi avatar Jan 05 '21 05:01 ianhi

In your lab extension, you could just import that version from package.json directly.

jasongrout avatar Jan 05 '21 05:01 jasongrout

👍🏼

martinRenou avatar Jan 05 '21 07:01 martinRenou