Skip to content

Commit

Permalink
toArray -> Array.from
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed May 23, 2024
1 parent 802fce2 commit 150abc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/jupyterlab_widgets/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ function* notebookWidgetRenderers(
function* consoleWidgetRenderers(
console: CodeConsole
): Generator<WidgetRenderer, void, unknown> {
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;
}
Expand Down

0 comments on commit 150abc2

Please sign in to comment.