From c0c1cae00199c436826b08cc863817cb3adaddf7 Mon Sep 17 00:00:00 2001 From: martinRenou Date: Thu, 23 May 2024 13:24:38 +0200 Subject: [PATCH] toArray -> Array.from --- python/jupyterlab_widgets/src/plugin.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }