Skip to content

Commit

Permalink
Apply same special case for jupyter-widgets packages as in the lab
Browse files Browse the repository at this point in the history
manager
  • Loading branch information
martinRenou committed Jul 30, 2024
1 parent 45b4339 commit 5aadeb6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/html-manager/src/htmlmanager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,13 @@ export class HTMLManager extends ManagerBase {
moduleVersion: string
): Promise<typeof WidgetModel | typeof WidgetView> {
return new Promise((resolve, reject) => {
if (
moduleName === '@jupyter-widgets/base' ||
moduleName === '@jupyter-widgets/controls'
) {
moduleVersion = `^${moduleVersion}`;
}

if (moduleName === '@jupyter-widgets/base') {
const best = maxSatisfying(['1.2.0', '2.0.0'], moduleVersion);

Expand Down

0 comments on commit 5aadeb6

Please sign in to comment.