-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
/
index.ts
47 lines (39 loc) · 1015 Bytes
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Local CSS must be loaded prior to loading other libs.
import '../style/index.css';
import { JupyterLab, JupyterLabPlugin } from '@jupyterlab/application';
import { IStatusBar, StatusBar } from '@jupyterlab/statusbar';
// Export default status bar items
import {
lineColItem,
fileUploadItem,
kernelStatusItem,
runningSessionsItem,
filePathItem,
tabSpaceItem,
memoryUsageItem,
savingStatusItem
} from './defaults';
export const STATUSBAR_PLUGIN_ID = '@jupyterlab/statusbar-extension:plugin';
/**
* Initialization data for the statusbar extension.
*/
const statusBar: JupyterLabPlugin<IStatusBar> = {
id: STATUSBAR_PLUGIN_ID,
provides: IStatusBar,
autoStart: true,
activate: (app: JupyterLab) => {
return new StatusBar({ host: app.shell });
}
};
const plugins: JupyterLabPlugin<any>[] = [
statusBar,
lineColItem,
fileUploadItem,
kernelStatusItem,
runningSessionsItem,
filePathItem,
tabSpaceItem,
memoryUsageItem,
savingStatusItem
];
export default plugins;