Skip to content

Commit

Permalink
Review
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart committed Dec 19, 2022
1 parent abea2e1 commit 5115041
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions packages/labextension/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const memoryStatusPlugin: JupyterFrontEndPlugin<void> = {
const trans = translator.load('jupyter-resource-usage');
const item = new MemoryUsage(trans);

statusBar.registerStatusItem(memory_extension.id, {
statusBar.registerStatusItem(memoryStatusPlugin.id, {
item,
align: 'left',
rank: 2,
Expand All @@ -46,12 +46,13 @@ const memoryStatusPlugin: JupyterFrontEndPlugin<void> = {
const kernelUsagePlugin: JupyterFrontEndPlugin<void> = {
id: '@jupyter-server/resource-usage:kernel-panel-item',
autoStart: true,
requires: [ITranslator, ICommandPalette, INotebookTracker],
optional: [ICommandPalette],
requires: [ITranslator, INotebookTracker],
activate: (
app: JupyterFrontEnd,
translator: ITranslator,
palette: ICommandPalette,
notebookTracker: INotebookTracker
notebookTracker: INotebookTracker,
palette: ICommandPalette | null,
) => {
const trans = translator.load('jupyter-resource-usage');

Expand Down Expand Up @@ -90,7 +91,7 @@ const kernelUsagePlugin: JupyterFrontEndPlugin<void> = {
};

const plugins: JupyterFrontEndPlugin<any>[] = [
memory_extension,
kernel_extension,
memoryStatusPlugin,
kernelUsagePlugin,
];
export default plugins;

0 comments on commit 5115041

Please sign in to comment.