Skip to content

Commit

Permalink
Phosphore widget backward compatibility fix on WidgetRenderer
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed Aug 19, 2024
1 parent c579fcd commit f72cd96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/jupyterlab_widgets/src/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ export class WidgetRenderer

let widget: LuminoWidget;
try {
widget = (await manager.create_view(wModel)).luminoWidget;
const view = await manager.create_view(wModel);
widget = view.luminoWidget || view.pWidget;
} catch (err) {
this.node.textContent = 'Error displaying widget';
this.addClass('jupyter-widgets');
Expand Down

0 comments on commit f72cd96

Please sign in to comment.