Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hbcarlos committed Apr 14, 2023
1 parent be29b8b commit d73607b
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions packages/blockly-extension/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { IJupyterWidgetRegistry } from '@jupyter-widgets/base';

import {
WidgetRenderer,
registerWidgetManager,
registerWidgetManager
} from '@jupyter-widgets/jupyterlab-manager';

import { BlocklyEditorFactory } from 'jupyterlab-blockly';
Expand Down Expand Up @@ -243,17 +243,17 @@ const plugin: JupyterFrontEndPlugin<IBlocklyRegistry> = {
}

if (widgetRegistry) {
tracker.forEach((panel) => {
tracker.forEach(panel => {
registerWidgetManager(
(panel.context as any),
panel.context as any,
panel.content.rendermime,
widgetRenderers([panel.content.cell])
);
});

tracker.widgetAdded.connect((sender, panel) => {
registerWidgetManager(
(panel.context as any),
panel.context as any,
panel.content.rendermime,
widgetRenderers([panel.content.cell])
);
Expand All @@ -264,9 +264,7 @@ const plugin: JupyterFrontEndPlugin<IBlocklyRegistry> = {
}
};

function* widgetRenderers(
cells: CodeCell[]
): IterableIterator<WidgetRenderer> {
function* widgetRenderers(cells: CodeCell[]): IterableIterator<WidgetRenderer> {
for (const w of cells) {
if (w instanceof WidgetRenderer) {
yield w;
Expand Down

0 comments on commit d73607b

Please sign in to comment.