diff --git a/python/jupyterlab_widgets/src/plugin.ts b/python/jupyterlab_widgets/src/plugin.ts index 1c3a87ac1e..7eca855210 100644 --- a/python/jupyterlab_widgets/src/plugin.ts +++ b/python/jupyterlab_widgets/src/plugin.ts @@ -90,10 +90,10 @@ function* notebookWidgetRenderers( function* consoleWidgetRenderers( console: CodeConsole ): Generator { - for (const cell of toArray(console.cells)) { + for (const cell of Array.from(console.cells)) { if (cell.model.type === 'code') { for (const codecell of (cell as unknown as CodeCell).outputArea.widgets) { - for (const output of toArray(codecell.children())) { + for (const output of Array.from(codecell.children())) { if (output instanceof WidgetRenderer) { yield output; }