Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
activate: (app: JupyterFrontEnd, statusBar: IStatusBar) => {
let item = new MemoryUsage();
statusBar.registerStatusItem(
'@jupyterlab/statusbar-extension:memory-usage-status',
{
item,
align: 'left',
rank: 2,
isActive: () => item.model!.metricsAvailable,
activeStateChanged: item.model!.stateChanged
}
);
}
};
activate: (app: JupyterFrontEnd, statusBar: IStatusBar) => {
let item = new MemoryUsage();
statusBar.registerStatusItem(
'@jupyterlab/statusbar-extension:memory-usage-status',
{
item,
align: 'left',
rank: 2,
isActive: () => item.model!.metricsAvailable,
activeStateChanged: item.model!.stateChanged
}
);
}
};