From 70864f9e6c61a747d54a8e004aa4dd6adf2296bd Mon Sep 17 00:00:00 2001 From: Alan Fleming <> Date: Sun, 9 Jun 2024 14:22:13 +1000 Subject: [PATCH] WidgetManager - do nothing if rendermime is the global rendermime instead of raising an error. --- python/jupyterlab_widgets/src/manager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/jupyterlab_widgets/src/manager.ts b/python/jupyterlab_widgets/src/manager.ts index 9bd5ed42fb..355f00ab02 100644 --- a/python/jupyterlab_widgets/src/manager.ts +++ b/python/jupyterlab_widgets/src/manager.ts @@ -605,7 +605,7 @@ export class WidgetManager extends Backbone.Model implements IDisposable { manager: WidgetManager ) { if (rendermime === LabWidgetManager.globalRendermime) { - throw new Error('Using global rendermime is not permitted!'); + return; } rendermime.removeMimeType(WIDGET_VIEW_MIMETYPE); rendermime.addFactory(