File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
packages/jupyterlab-manager/src Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -172,9 +172,13 @@ class WidgetManager extends ManagerBase<Widget> implements IDisposable {
172
172
*/
173
173
protected loadClass ( className : string , moduleName : string , moduleVersion : string ) : Promise < typeof WidgetModel | typeof WidgetView > {
174
174
175
- // If we have just a plain version, with no indication of the compatible
176
- // range, prepend a ^ to get all compatible versions.
177
- if ( valid ( moduleVersion ) ) {
175
+ // Special-case the Jupyter base and controls packages. If we have just a
176
+ // plain version, with no indication of the compatible range, prepend a ^ to
177
+ // get all compatible versions. We may eventually apply this logic to all
178
+ // widget modules. See issues #2006 and #2017 for more discussion.
179
+ if ( ( moduleName === "@jupyter-widgets/base"
180
+ || moduleName === "@jupyter-widgets/controls" )
181
+ && valid ( moduleVersion ) ) {
178
182
moduleVersion = `^${ moduleVersion } ` ;
179
183
}
180
184
You can’t perform that action at this time.
0 commit comments