Skip to content

Commit 150abc2

Browse files
committed
toArray -> Array.from
1 parent 802fce2 commit 150abc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/jupyterlab_widgets/src/plugin.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ function* notebookWidgetRenderers(
9090
function* consoleWidgetRenderers(
9191
console: CodeConsole
9292
): Generator<WidgetRenderer, void, unknown> {
93-
for (const cell of toArray(console.cells)) {
93+
for (const cell of Array.from(console.cells)) {
9494
if (cell.model.type === 'code') {
9595
for (const codecell of (cell as unknown as CodeCell).outputArea.widgets) {
96-
for (const output of toArray(codecell.children())) {
96+
for (const output of Array.from(codecell.children())) {
9797
if (output instanceof WidgetRenderer) {
9898
yield output;
9999
}

0 commit comments

Comments
 (0)