File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
packages/blockly-extension/src Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import { IJupyterWidgetRegistry } from '@jupyter-widgets/base';
18
18
19
19
import {
20
20
WidgetRenderer ,
21
- registerWidgetManager ,
21
+ registerWidgetManager
22
22
} from '@jupyter-widgets/jupyterlab-manager' ;
23
23
24
24
import { BlocklyEditorFactory } from 'jupyterlab-blockly' ;
@@ -243,17 +243,17 @@ const plugin: JupyterFrontEndPlugin<IBlocklyRegistry> = {
243
243
}
244
244
245
245
if ( widgetRegistry ) {
246
- tracker . forEach ( ( panel ) => {
246
+ tracker . forEach ( panel => {
247
247
registerWidgetManager (
248
- ( panel . context as any ) ,
248
+ panel . context as any ,
249
249
panel . content . rendermime ,
250
250
widgetRenderers ( [ panel . content . cell ] )
251
251
) ;
252
252
} ) ;
253
-
253
+
254
254
tracker . widgetAdded . connect ( ( sender , panel ) => {
255
255
registerWidgetManager (
256
- ( panel . context as any ) ,
256
+ panel . context as any ,
257
257
panel . content . rendermime ,
258
258
widgetRenderers ( [ panel . content . cell ] )
259
259
) ;
@@ -264,9 +264,7 @@ const plugin: JupyterFrontEndPlugin<IBlocklyRegistry> = {
264
264
}
265
265
} ;
266
266
267
- function * widgetRenderers (
268
- cells : CodeCell [ ]
269
- ) : IterableIterator < WidgetRenderer > {
267
+ function * widgetRenderers ( cells : CodeCell [ ] ) : IterableIterator < WidgetRenderer > {
270
268
for ( const w of cells ) {
271
269
if ( w instanceof WidgetRenderer ) {
272
270
yield w ;
You can’t perform that action at this time.
0 commit comments