Skip to content

Commit b9f2edb

Browse files
committed
Lint
1 parent 7e96dd2 commit b9f2edb

File tree

1 file changed

+38
-27
lines changed

1 file changed

+38
-27
lines changed

python/jupyterlab_widgets/src/plugin.ts

Lines changed: 38 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -144,21 +144,21 @@ export function registerWidgetManager(
144144
/**
145145
* The widget manager provider.
146146
*/
147-
export const managerPlugin: JupyterFrontEndPlugin<base.IJupyterWidgetRegistry> = {
148-
id: '@jupyter-widgets/jupyterlab-manager:plugin',
149-
requires: [IRenderMimeRegistry],
150-
optional: [
151-
INotebookTracker,
152-
ISettingRegistry,
153-
IMainMenu,
154-
ILoggerRegistry,
155-
ITranslator,
156-
],
157-
provides: base.IJupyterWidgetRegistry,
158-
activate: activateWidgetExtension,
159-
autoStart: true,
160-
};
161-
147+
export const managerPlugin: JupyterFrontEndPlugin<base.IJupyterWidgetRegistry> =
148+
{
149+
id: '@jupyter-widgets/jupyterlab-manager:plugin',
150+
requires: [IRenderMimeRegistry],
151+
optional: [
152+
INotebookTracker,
153+
ISettingRegistry,
154+
IMainMenu,
155+
ILoggerRegistry,
156+
ITranslator,
157+
],
158+
provides: base.IJupyterWidgetRegistry,
159+
activate: activateWidgetExtension,
160+
autoStart: true,
161+
};
162162

163163
function updateSettings(settings: ISettingRegistry.ISettings): void {
164164
SETTINGS.saveState = settings.get('saveState').composite as boolean;
@@ -276,23 +276,24 @@ function activateWidgetExtension(
276276
]);
277277
}
278278

279-
280279
return {
281280
registerWidget(data: base.IWidgetRegistryData): void {
282281
WIDGET_REGISTRY.push(data);
283282
},
284283
};
285284
}
286285

287-
288286
/**
289287
* The base widgets.
290288
*/
291289
export const baseWidgetsPlugin: JupyterFrontEndPlugin<void> = {
292290
id: `@jupyter-widgets/jupyterlab-manager:base-${base.JUPYTER_WIDGETS_VERSION}`,
293291
requires: [base.IJupyterWidgetRegistry],
294292
autoStart: true,
295-
activate: (app: JupyterFrontEnd, registry: base.IJupyterWidgetRegistry): void => {
293+
activate: (
294+
app: JupyterFrontEnd,
295+
registry: base.IJupyterWidgetRegistry
296+
): void => {
296297
registry.registerWidget({
297298
name: '@jupyter-widgets/base',
298299
version: base.JUPYTER_WIDGETS_VERSION,
@@ -308,18 +309,20 @@ export const baseWidgetsPlugin: JupyterFrontEndPlugin<void> = {
308309
ErrorWidgetView: base.ErrorWidgetView,
309310
},
310311
});
311-
}
312+
},
312313
};
313314

314-
315315
/**
316316
* The control widgets.
317317
*/
318318
export const controlWidgetsPlugin: JupyterFrontEndPlugin<void> = {
319319
id: `@jupyter-widgets/jupyterlab-manager:controls-${JUPYTER_CONTROLS_VERSION}`,
320320
requires: [base.IJupyterWidgetRegistry],
321321
autoStart: true,
322-
activate: (app: JupyterFrontEnd, registry: base.IJupyterWidgetRegistry): void => {
322+
activate: (
323+
app: JupyterFrontEnd,
324+
registry: base.IJupyterWidgetRegistry
325+
): void => {
323326
registry.registerWidget({
324327
name: '@jupyter-widgets/controls',
325328
version: JUPYTER_CONTROLS_VERSION,
@@ -337,9 +340,9 @@ export const controlWidgetsPlugin: JupyterFrontEndPlugin<void> = {
337340
'@jupyter-widgets/controls'
338341
);
339342
});
340-
}
343+
},
341344
});
342-
}
345+
},
343346
};
344347

345348
/**
@@ -349,16 +352,24 @@ export const outputWidgetPlugin: JupyterFrontEndPlugin<void> = {
349352
id: `@jupyter-widgets/jupyterlab-manager:output-${OUTPUT_WIDGET_VERSION}`,
350353
requires: [base.IJupyterWidgetRegistry],
351354
autoStart: true,
352-
activate: (app: JupyterFrontEnd, registry: base.IJupyterWidgetRegistry): void => {
355+
activate: (
356+
app: JupyterFrontEnd,
357+
registry: base.IJupyterWidgetRegistry
358+
): void => {
353359
registry.registerWidget({
354360
name: '@jupyter-widgets/output',
355361
version: OUTPUT_WIDGET_VERSION,
356-
exports: { OutputModel, OutputView }
362+
exports: { OutputModel, OutputView },
357363
});
358-
}
364+
},
359365
};
360366

361-
export default [managerPlugin, baseWidgetsPlugin, controlWidgetsPlugin, outputWidgetPlugin];
367+
export default [
368+
managerPlugin,
369+
baseWidgetsPlugin,
370+
controlWidgetsPlugin,
371+
outputWidgetPlugin,
372+
];
362373
namespace Private {
363374
/**
364375
* A private attached property for a widget manager.

0 commit comments

Comments
 (0)