Skip to content

Commit 614b705

Browse files
committed
Make the widget renderer higher priority in JupyterLab
The widget renderer should take precedence over the core jlab json renderer. However, the json renderer is priority 0, so we lose (since our id is also sorted after the json renderer id). This bumps up our priority to be higher priority than the json renderer. Fixes #3576
1 parent e722a0d commit 614b705

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/jupyterlab_widgets/src/plugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export function registerWidgetManager(
130130
mimeTypes: [WIDGET_VIEW_MIMETYPE],
131131
createRenderer: (options) => new WidgetRenderer(options, wManager),
132132
},
133-
0
133+
-10
134134
);
135135

136136
return new DisposableDelegate(() => {
@@ -225,7 +225,7 @@ function activateWidgetExtension(
225225
mimeTypes: [WIDGET_VIEW_MIMETYPE],
226226
createRenderer: (options) => new WidgetRenderer(options),
227227
},
228-
0
228+
-10
229229
);
230230

231231
if (tracker !== null) {

0 commit comments

Comments
 (0)